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(); }
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; }