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); }
public DataRetention(ShardInstance instance) : base(instance) { }
public SelectiveAutoUserDownload(ShardInstance instance) : base(instance) { }
public ConnectionStatus(ShardInstance instance) : base(instance) { }
public BirthdayRoleUpdate(ShardInstance instance) : base(instance) { }
public BackgroundService(ShardInstance instance) => ShardInstance = instance;