Ejemplo n.º 1
0
        /// <summary>
        /// Used to Setup the list of initialisation actions and executes all OnApplicationStart actions
        /// </summary>
        /// <param name="application">Current HttpApplication object</param>
        /// <param name="addActionLists">Delegate with ActionList to which InitialisionActions can be added</param>
        public static void Setup(HttpApplication application, Action <InitialisationActionList> addActionLists)
        {
            var actions = new InitialisationActionList();

            addActionLists.Invoke(actions);
            Setup(application, actions);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Used to Setup the list of initialisation actions and executes all OnApplicationStart actions
 /// </summary>
 /// <param name="app">Current HttpApplication object</param>
 /// <param name="actions">A list of initialisation actions</param>
 public static void Setup(HttpApplication app, InitialisationActionList actions)
 {
     lock (m_lock)
     {
         if (!m_isSetup)
         {
             m_isSetup = true;
             m_initialisationActions = actions;
             RunAllActionsWithState(app, InitialisationStage.OnStart);
             m_logger.LogDebugMessage("Setting up initialisers");
         }
     }
 }