Beispiel #1
0
 //was configuration changed on server?
 public async Task <bool> ConfigChanged(Guid serverId)
 {
     if ((_client == null) || (_client.State != CommunicationState.Opened))
     {
         _client = GetClient();
     }
     try
     {
         return(await _client.GetConfigChangedAsync(serverId));
     }
     catch (FaultException ex)
     {
         (ex.Message).WriteLog(EventLogEntryType.Error, 5);
     }
     catch (Exception ex)
     {
         (ex.Message + ex.InnerException).WriteLog(EventLogEntryType.Error, 5);
         _client.Abort();
     }
     return(false);
 }