public Server() { Configuration.OnLoad += ConfigLoaded; Configuration.OnReLoad += ConfigReLoaded; Configuration.Load(); Loop = new MainLoop(this, MainLoopTime); PublicAddress = IPAddress.Parse(Config.GameConfig.PublicAddress); LengthedSocket.InitializeEventArgsPool(Config.SocketAsyncConfig.MaxClients * Config.SocketAsyncConfig.ConcurrentOperationsByClient); BufferManager.Initialize(Config.SocketAsyncConfig.BufferSize, Config.SocketAsyncConfig.MaxClients, Config.SocketAsyncConfig.ConcurrentOperationsByClient); GameDatabaseAccess.Initialize(Config.WorldDatabaseConnectionString, Config.CharDatabaseConnectionString); CommandProcessor.RegisterCommand("exit", ProcessExitCommand); CommandProcessor.RegisterCommand("reload", ProcessReloadCommand); }
public Server(IHostApplicationLifetime hostApplicationLifetime, IClientFactory clientFactory) { _hostApplicationLifetime = hostApplicationLifetime; _clientFactory = clientFactory; Configuration.OnLoad += ConfigLoaded; Configuration.OnReLoad += ConfigReLoaded; Configuration.Load(); Loop = new MainLoop(this, MainLoopTime); PublicAddress = IPAddress.Parse(Config.GameConfig.PublicAddress); LengthedSocket.InitializeEventArgsPool(Config.SocketAsyncConfig.MaxClients * Config.SocketAsyncConfig.ConcurrentOperationsByClient); BufferManager.Initialize(Config.SocketAsyncConfig.BufferSize, Config.SocketAsyncConfig.MaxClients, Config.SocketAsyncConfig.ConcurrentOperationsByClient); CommandProcessor.RegisterCommand("exit", ProcessExitCommand); CommandProcessor.RegisterCommand("reload", ProcessReloadCommand); }
public Server() { Configuration.OnLoad += ConfigLoaded; Configuration.OnReLoad += ConfigReLoaded; Configuration.Load(); Loop = new MainLoop(this, MainLoopTime); Timer = new Timer(); SetupServerList(); LengthedSocket.InitializeEventArgsPool(Config.SocketAsyncConfig.MaxClients * Config.SocketAsyncConfig.ConcurrentOperationsByClient); BufferManager.Initialize(Config.SocketAsyncConfig.BufferSize, Config.SocketAsyncConfig.MaxClients, Config.SocketAsyncConfig.ConcurrentOperationsByClient); AuthDatabaseAccess.Initialize(Config.DatabaseConnectionString); CommandProcessor.RegisterCommand("exit", ProcessExitCommand); CommandProcessor.RegisterCommand("reload", ProcessReloadCommand); CommandProcessor.RegisterCommand("create", ProcessCreateCommand); }
public Server(IHostApplicationLifetime hostApplicationLifetime, IAuthUnitOfWorkFactory authUnitOfWorkFactory) { _hostApplicationLifetime = hostApplicationLifetime; _authUnitOfWorkFactory = authUnitOfWorkFactory; Configuration.OnLoad += ConfigLoaded; Configuration.OnReLoad += ConfigReLoaded; Configuration.Load(); Loop = new MainLoop(this, MainLoopTime); Timer = new Timer(); SetupServerList(); LengthedSocket.InitializeEventArgsPool(Config.SocketAsyncConfig.MaxClients * Config.SocketAsyncConfig.ConcurrentOperationsByClient); BufferManager.Initialize(Config.SocketAsyncConfig.BufferSize, Config.SocketAsyncConfig.MaxClients, Config.SocketAsyncConfig.ConcurrentOperationsByClient); CommandProcessor.RegisterCommand("exit", ProcessExitCommand); CommandProcessor.RegisterCommand("reload", ProcessReloadCommand); CommandProcessor.RegisterCommand("create", ProcessCreateCommand); }