private static void RunAllActionsWithState(HttpApplication app, InitialisationStage initState) { foreach (InitialisationAction initAction in m_initialisationActions) { if (initAction.Stage == initState) { initAction.InitAction.Invoke(app); } } }
public InitialisationAction(InitialisationStage stage, Action <HttpApplication> initAction) { Stage = stage; InitAction = initAction; }
public InitialisationAction(InitialisationStage stage) { Stage = stage; InitAction = app => { }; }
public InitialisationAction(InitialisationStage stage, Action<HttpApplication> initAction) { Stage = stage; InitAction = initAction; }
public void AddAction(InitialisationStage stage, Action <HttpApplication> initAction) { Add(new InitialisationAction(stage, initAction)); }