public void Start(EncryptionSettingsProto encryptionSettings) { EncryptionOperation encryptionOperation; lock (Locker) { if (Queue.GetTask <EncryptionOperation>(GetCacheId()) != null) { return; } encryptionOperation = FactoryOperation.CreateOperation(encryptionSettings, GetCacheId()); Queue.QueueTask(encryptionOperation); } }
public EncryptionWorker(FactoryOperation factoryOperation) { Cache = AscCache.Memory; Locker = new object(); FactoryOperation = factoryOperation; }
public EncryptionWorker(FactoryOperation factoryOperation, DistributedTaskQueueOptionsManager options) { Locker = new object(); FactoryOperation = factoryOperation; Queue = options.Get <EncryptionOperation>(); }
public EncryptionWorker(FactoryOperation factoryOperation, ICache cache) { Cache = cache; Locker = new object(); FactoryOperation = factoryOperation; }