private void Executed(IList <IExcuteFilter> filters, object returnValue) { ExecutedContext executeContext = new ExecutedContext(_targetMethod, _args, returnValue); foreach (var filter in filters) { filter.OnExecuted(executeContext); if (executeContext.Result != null) { break; } } }
private ExecutedContext Executed(IList <IExcuteFilter> filters) { ExecutedContext executeContext = new ExecutedContext(_returnMethod); foreach (var filter in filters) { filter.OnExecuted(executeContext); if (executeContext.Result != null) { break; } } return(executeContext); }