using CacheNotifyAction = ASC.Common.Caching.CacheNotifyAction; namespace ASC.Core.Notify; [Scope] public class NotifyServiceClient : INotifyService { private readonly ICacheNotify _cacheNotify; private readonly ICacheNotify _notifyInvoke; public NotifyServiceClient(ICacheNotify cacheNotify, ICacheNotify notifyInvoke) { _cacheNotify = cacheNotify; _notifyInvoke = notifyInvoke; } public void SendNotifyMessage(NotifyMessage m) { _cacheNotify.Publish(m, CacheNotifyAction.InsertOrUpdate); } public void InvokeSendMethod(NotifyInvoke notifyInvoke) { _notifyInvoke.Publish(notifyInvoke, CacheNotifyAction.InsertOrUpdate); } }