示例#1
0
 private Object RunDelegate(RunDelegateArgs delArgs)
 {
     Logger.SetTag(logTag);
     try
     {
         return delArgs.Delegate.DynamicInvoke(delArgs.Arguments);
     }
     catch (Exception ex)
     {
         log.Error(ex);
         return null;
     }
     finally
     {
         invokeSemaphore.Release();
     }
     Logger.ClearTag();
 }
示例#2
0
 private object RunDelegate(RunDelegateArgs delArgs)
 {
     object obj2;
     try
     {
         obj2 = delArgs.Delegate.DynamicInvoke(delArgs.Arguments);
     }
     catch (Exception exception)
     {
         this.log.Error(exception);
         obj2 = null;
     }
     finally
     {
         invokeSemaphore.Release();
     }
     return obj2;
 }