private static void SendNotification(string method, int tenantId, params object[] args) { try { using (var notifyClient = new NotifyServiceClient()) { notifyClient.InvokeSendMethod(NotifyService, method, tenantId, args); } } catch (Exception error) { LogManager.GetLogger("ASC.Backup").Warn("Error while sending notification", error); } }
private void SendStorageEncryptionNotification(string method, int tenantId) { try { using (var notifyClient = new NotifyServiceClient()) { notifyClient.InvokeSendMethod(NotifyService, method, tenantId, ServerRootPath); } } catch (Exception error) { LogManager.GetLogger("ASC").Warn("Error while sending notification", error); } }
private void SendStorageEncryptionNotification(string method, int tenantId) { var notifyInvoke = new NotifyInvoke() { Service = NotifyService, Method = method, Tenant = tenantId }; notifyInvoke.Parameters.Add(ServerRootPath); try { NotifyServiceClient.InvokeSendMethod(notifyInvoke); } catch (Exception error) { Log.Warn("Error while sending notification", error); } }