Пример #1
0
 private static void RunAllActionsWithState(HttpApplication app, InitialisationStage initState)
 {
     foreach (InitialisationAction initAction in m_initialisationActions)
     {
         if (initAction.Stage == initState)
         {
             initAction.InitAction.Invoke(app);
         }
     }
 }
Пример #2
0
 public InitialisationAction(InitialisationStage stage, Action <HttpApplication> initAction)
 {
     Stage      = stage;
     InitAction = initAction;
 }
Пример #3
0
 public InitialisationAction(InitialisationStage stage)
 {
     Stage      = stage;
     InitAction = app => { };
 }
 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 void AddAction(InitialisationStage stage, Action <HttpApplication> initAction)
 {
     Add(new InitialisationAction(stage, initAction));
 }