Ejemplo n.º 1
0
        private static async Task StartServicesAsync(IServiceProvider services)
        {
            MonkeyDBContext dbContext = services.GetRequiredService <MonkeyDBContext>();
            await DBInitializer.InitializeAsync(dbContext);

            IReminderService reminders = services.GetService <IReminderService>();
            await reminders.InitializeAsync();

            SteamGameServerService steamGameServerService = services.GetService <SteamGameServerService>();

            steamGameServerService.Initialize();

            MineCraftGameServerService minecraftGameServerService = services.GetService <MineCraftGameServerService>();

            minecraftGameServerService.Initialize();

            IRoleDropdownService roleButtonsService = services.GetService <IRoleDropdownService>();
            await roleButtonsService.InitializeAsync();

            IFeedService feedService = services.GetService <IFeedService>();

            feedService.Start();

            IBattlefieldNewsService battlefieldNewsService = services.GetService <IBattlefieldNewsService>();

            battlefieldNewsService.Start();

            IGiveAwaysService giveAwaysService = services.GetService <IGiveAwaysService>();

            giveAwaysService.Start();

            IPollService pollService = services.GetService <IPollService>();
            await pollService.InitializeAsync();

            return;
        }
Ejemplo n.º 2
0
 public RoleDropdownModule(IRoleDropdownService roleButtonService)
 {
     _roleButtonService = roleButtonService;
 }