示例#1
0
 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);
     }
 }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }
示例#4
0
        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);
            }
        }