private bool InvokeModules(IHttpContext context, IEnumerable modules, InvokeRoutingHandler action) { try { foreach (IRoutingModule module in modules) { if (action(module, context) == ModuleResult.Stop) { return(false); } } return(true); } catch (Exception err) { context.LastException = err; return(false); } }
private bool InvokeModules(IHttpContext context, IEnumerable modules, InvokeRoutingHandler action) { try { foreach (IRoutingModule module in modules) { if (action(module, context) == ModuleResult.Stop) { return false; } } return true; } catch (Exception err) { context.LastException = err; return false; } }