Example #1
0
        public ShardBackgroundWorker(ShardInstance instance)
        {
            Instance         = instance;
            _workerCanceller = new CancellationTokenSource();

            ConnStatus      = new ConnectionStatus(instance);
            BirthdayUpdater = new BirthdayRoleUpdate(instance);
            _workers        = new List <BackgroundService>()
            {
                { BirthdayUpdater },
                { new DataRetention(instance) }
            };

            _workerTask = Task.Factory.StartNew(WorkerLoop, _workerCanceller.Token);
        }
Example #2
0
 public DataRetention(ShardInstance instance) : base(instance)
 {
 }
Example #3
0
 public SelectiveAutoUserDownload(ShardInstance instance) : base(instance)
 {
 }
Example #4
0
 public ConnectionStatus(ShardInstance instance) : base(instance)
 {
 }
 public BirthdayRoleUpdate(ShardInstance instance) : base(instance) { }
 public BackgroundService(ShardInstance instance) => ShardInstance = instance;