Database Support

Refactored almost everything, but most importantly we now integrate with RethinkDB for game data.
This commit is contained in:
hyperion51 2020-03-22 19:05:26 +00:00
commit 0b46d5ee39
839 changed files with 77349 additions and 112660 deletions

View file

@ -6,6 +6,8 @@ using Microsoft.Extensions.Hosting;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
using Newtonsoft.Json;
using RethinkDb.Driver;
namespace ChatApp.Server
{
@ -13,6 +15,9 @@ namespace ChatApp.Server
{
static async Task Main(string[] args)
{
var connection = RethinkDb.Driver.RethinkDB.R.Connection().Hostname("asgard.gamecult.games")
.Port(RethinkDBConstants.DefaultPort).Timeout(60).Connect();
GrpcEnvironment.SetLogger(new Grpc.Core.Logging.ConsoleLogger());
await MagicOnionHost.CreateDefaultBuilder()