/// <summary>The server entry point.</summary> public static void Main() { ConfigureLogging(); using (var persistenceContextProvider = new PersistenceContextProvider(PersistenceConfiguration.InMemory())) { var initializer = new PersistenceInitializer(persistenceContextProvider); Logger.Info("Creating configuration & test data"); initializer.CreateConfiguration(); initializer.CreateTestData(); using (var connectServer = CreateConnectServer()) using (var loginServer = CreateLoginServer(persistenceContextProvider)) using (var gameServer = CreateGameServer(persistenceContextProvider, connectServer, loginServer)) using (BeginServerStart(connectServer)) using (BeginServerStart(loginServer)) using (BeginServerStart(gameServer)) { Task.WaitAny(gameServer.ShutdownTask, connectServer.ShutdownTask, InterruptSignal()); } } }
public void Initialized_In_Memory_Data_Is_Persistent() { var config = PersistenceConfiguration.InMemory(); this.ValidatePersistenceCache(new PersistenceContextProvider(config)); }