Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public DataRetention(ShardInstance instance) : base(instance)
 {
 }
Exemplo n.º 3
0
 public SelectiveAutoUserDownload(ShardInstance instance) : base(instance)
 {
 }
Exemplo n.º 4
0
 public ConnectionStatus(ShardInstance instance) : base(instance)
 {
 }
Exemplo n.º 5
0
 public BirthdayRoleUpdate(ShardInstance instance) : base(instance) { }
Exemplo n.º 6
0
 public BackgroundService(ShardInstance instance) => ShardInstance = instance;