Ejemplo n.º 1
0
 public AbstractService(ILogger <TP> logger, AppSettings settings, QuickSync quickSync, TimeSpan delay)
 {
     _settings  = settings;
     _delay     = delay;
     _logger    = logger;
     _quickSync = quickSync;
 }
Ejemplo n.º 2
0
 public PatchBuilder(ILogger <PatchBuilder> logger, SqlService sql, AppSettings settings, ArchiveMaintainer maintainer,
                     DiscordWebHook discordWebHook, QuickSync quickSync) : base(logger, settings, quickSync, TimeSpan.FromMinutes(1))
 {
     _discordWebHook = discordWebHook;
     _sql            = sql;
     _maintainer     = maintainer;
 }
Ejemplo n.º 3
0
        public DiscordWebHook(ILogger <DiscordWebHook> logger, AppSettings settings, QuickSync quickSync) : base(logger, settings, quickSync, TimeSpan.FromHours(1))
        {
            _settings = settings;
            _logger   = logger;

            var message = new DiscordMessage
            {
                Content = $"\"{GetQuote()}\" - Sheogorath (as he brings the server online)",
            };
            var a = Send(Channel.Ham, message);
            var b = Send(Channel.Spam, message);
        }
Ejemplo n.º 4
0
        public DiscordFrontend(ILogger <DiscordFrontend> logger, AppSettings settings, QuickSync quickSync, SqlService sql)
        {
            _logger    = logger;
            _settings  = settings;
            _quickSync = quickSync;

            _client = new DiscordSocketClient();

            _client.Log             += LogAsync;
            _client.Ready           += ReadyAsync;
            _client.MessageReceived += MessageReceivedAsync;

            _sql = sql;
        }
Ejemplo n.º 5
0
        public DiscordFrontend(ILogger <DiscordFrontend> logger, AppSettings settings, QuickSync quickSync, ListValidator listValidator, SqlService sql, MetricsKeyCache keyCache)
        {
            _logger    = logger;
            _settings  = settings;
            _quickSync = quickSync;

            _client = new DiscordSocketClient();

            _client.Log             += LogAsync;
            _client.Ready           += ReadyAsync;
            _client.MessageReceived += MessageReceivedAsync;

            _sql           = sql;
            _keyCache      = keyCache;
            _listValidator = listValidator;
        }
Ejemplo n.º 6
0
 public NexusKeyMaintainance(ILogger <NexusKeyMaintainance> logger, AppSettings settings, SqlService sql, QuickSync quickSync) : base(logger, settings, quickSync, TimeSpan.FromHours(4))
 {
     _sql = sql;
 }
Ejemplo n.º 7
0
 public MirrorQueueService(ILogger <MirrorQueueService> logger, AppSettings settings, QuickSync quickSync,
                           DiscordWebHook discordWebHook, SqlService sqlService) :
     base(logger, settings, quickSync, TimeSpan.FromMinutes(5))
 {
     _discord = discordWebHook;
     _sql     = sqlService;
 }
Ejemplo n.º 8
0
 public NonNexusDownloadValidator(ILogger <NonNexusDownloadValidator> logger, AppSettings settings, SqlService sql, QuickSync quickSync)
     : base(logger, settings, quickSync, TimeSpan.FromHours(2))
 {
     _sql = sql;
 }
Ejemplo n.º 9
0
 public AuthoredFilesCleanup(ILogger <AuthoredFilesCleanup> logger, AppSettings settings, QuickSync quickSync, SqlService sql, DiscordWebHook discord) : base(logger, settings, quickSync, TimeSpan.FromHours(6))
 {
     _sql     = sql;
     _discord = discord;
 }
Ejemplo n.º 10
0
 public NexusPermissionsUpdater(ILogger <NexusPermissionsUpdater> logger, AppSettings settings, QuickSync quickSync, DiscordWebHook discord, SqlService sql) : base(logger, settings, quickSync, TimeSpan.FromMinutes(5))
 {
     _discord = discord;
     _sql     = sql;
 }
Ejemplo n.º 11
0
 public ModListDownloader(ILogger <ModListDownloader> logger, AppSettings settings, ArchiveMaintainer maintainer, SqlService sql, DiscordWebHook discord, QuickSync quickSync)
     : base(logger, settings, quickSync, TimeSpan.FromMinutes(1))
 {
     _logger     = logger;
     _settings   = settings;
     _maintainer = maintainer;
     _sql        = sql;
     _discord    = discord;
 }
Ejemplo n.º 12
0
 public MirrorUploader(ILogger <MirrorUploader> logger, AppSettings settings, SqlService sql, QuickSync quickSync, ArchiveMaintainer archives, DiscordWebHook discord)
     : base(logger, settings, quickSync, TimeSpan.FromHours(1))
 {
     _sql      = sql;
     _archives = archives;
     _discord  = discord;
 }
Ejemplo n.º 13
0
 public Watchdog(ILogger <Watchdog> logger, AppSettings settings, QuickSync quickSync, DiscordWebHook discordWebHook) : base(logger, settings, quickSync, TimeSpan.FromMinutes(5))
 {
     _discord = discordWebHook;
 }
Ejemplo n.º 14
0
 public ArchiveDownloader(ILogger <ArchiveDownloader> logger, AppSettings settings, SqlService sql, ArchiveMaintainer archiveMaintainer, DiscordWebHook discord, QuickSync quickSync)
     : base(logger, settings, quickSync, TimeSpan.FromMinutes(10))
 {
     _sql = sql;
     _archiveMaintainer = archiveMaintainer;
     _discord           = discord;
 }
Ejemplo n.º 15
0
 public CDNMirrorList(ILogger <CDNMirrorList> logger, AppSettings settings, QuickSync quickSync) : base(logger, settings, quickSync, TimeSpan.FromHours(6))
 {
 }