예제 #1
0
        public UpdateService(DiscordSocketClient client, LoggingService loggingService, PublisherService publisherService,
                             DatabaseService databaseService, AnimeService animeService)
        {
            _client           = client;
            _loggingService   = loggingService;
            _publisherService = publisherService;
            _databaseService  = databaseService;
            _animeService     = animeService;
            _token            = new CancellationToken();
            _random           = new Random();

            UpdateLoop();
        }
예제 #2
0
        public UpdateService(DiscordSocketClient client, ILoggingService loggingService, PublisherService publisherService,
                             DatabaseService databaseService, AnimeService animeService, Settings.Deserialized.Settings settings, FeedService feedService)
        {
            _client           = client;
            _loggingService   = loggingService;
            _publisherService = publisherService;
            _databaseService  = databaseService;
            _animeService     = animeService;
            _feedService      = feedService;

            _settings = settings;
            _token    = new CancellationToken();
            _random   = new Random();

            UpdateLoop();
        }