using CacheNotifyAction = ASC.Common.Caching.CacheNotifyAction; namespace ASC.Data.Storage.Encryption; [Scope] public class EncryptionServiceClient : IEncryptionService { private readonly ICacheNotify _notifySetting; private readonly ICacheNotify _notifyStop; public EncryptionServiceClient( ICacheNotify notifySetting, ICacheNotify notifyStop) { _notifySetting = notifySetting; _notifyStop = notifyStop; } public void Start(EncryptionSettingsProto encryptionSettingsProto) { _notifySetting.Publish(encryptionSettingsProto, CacheNotifyAction.Insert); } public void Stop() { _notifyStop.Publish(new EncryptionStop(), CacheNotifyAction.Insert); } }