Beispiel #1
0
        private static void ConfigureServices(IServiceCollection serviceCollection)
        {
            ServicesDependencyBinder.Bind(serviceCollection);
            RepositoriesDependencyBinder.Bind(serviceCollection);

            serviceCollection.AddSingleton <GamePacketHandlerAuth>();
            serviceCollection.AddSingleton <AuthThread>();
            serviceCollection.AddSingleton <PacketHandler>();
            serviceCollection.AddSingleton <ServerThread>();

            serviceCollection.AddSingleton <ServerThreadPool>();
            serviceCollection.AddSingleton <GamePacketHandler>();
            serviceCollection.AddSingleton <ClientManager>();
            serviceCollection.AddSingleton <Managers.ClientManager>();

            serviceCollection.AddSingleton <PreReqValidation>();
            serviceCollection.AddSingleton <Config.Config>();
            serviceCollection.AddSingleton <LoginServer>();
        }
Beispiel #2
0
        private static void ConfigureServices(IServiceCollection serviceCollection)
        {
            serviceCollection.AddSingleton <Config.Config>();

            ServicesDependencyBinder.Bind(serviceCollection);
            RepositoriesDependencyBinder.Bind(serviceCollection);

            serviceCollection.AddSingleton <GamePacketHandlerAuth>();
            serviceCollection.AddSingleton <AuthThread>();
            serviceCollection.AddSingleton <GamePacketHandler>();
            serviceCollection.AddSingleton <ClientManager>();
            serviceCollection.AddSingleton <PreReqValidation>();
            serviceCollection.AddSingleton <AnnouncementManager>();
            serviceCollection.AddSingleton <SpawnTable>();
            serviceCollection.AddSingleton <IdFactory>();
            serviceCollection.AddSingleton <ItemTable>();
            serviceCollection.AddSingleton <HtmCache>();
            serviceCollection.AddSingleton <BbsManager>();
            serviceCollection.AddSingleton <IAdminCommandHandler, AdminCommandHandler>();
            serviceCollection.AddSingleton <GameServer>();
        }