private bool InvokeModules(IHttpContext context, IEnumerable modules, InvokeAuthenticateHandler action) { try { foreach (IAuthenticationModule 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, InvokeAuthenticateHandler action) { try { foreach (IAuthenticationModule module in modules) { if (action(module, context) == ModuleResult.Stop) { return false; } } return true; } catch (Exception err) { context.LastException = err; return false; } }