コード例 #1
0
 public void Procedure(Action action)
 {
     try
     {
         action();
         _clientChannel.Close();
     }
     catch (Exception ex)
     {
         KTrace.Error(ex);
         _clientChannel.Abort();
         throw;
     }
 }
コード例 #2
0
 public T Function<T>(Func<T> func)
 {
     try
     {
         var result = func();
         _clientChannel.Close();
         return result;
     }
     catch (Exception ex)
     {
         KTrace.Error(ex);
         _clientChannel.Abort();
         throw;
     }
 }