/// <summary> /// Raises the <see cref="E:RefreshApplicationRules"/> event. /// </summary> /// <param name="e">The <see cref="ManagedFusion.Rewriter.RefreshRulesEventArgs"/> instance containing the event data.</param> protected virtual void OnRefreshApplicationRules(RefreshRulesEventArgs e) { if (RefreshApplicationRules != null) { RefreshApplicationRules(this, e); } }
/// <summary> /// Handles the PostHandlerExecute event of the request control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void context_PostRequestHandlerExecute(object sender, EventArgs e) { #region RefreshApplicationRules Event var refreshRulesArgs = new RefreshRulesEventArgs(); OnRefreshApplicationRules(refreshRulesArgs); // if refresh rules is set to true then clear out the application rules // which will force the LoadApplicationRules event to fire for the next // request if (refreshRulesArgs.RefreshRules) { Manager.ClearApplicationRules(); } #endregion }
/// <summary> /// Raises the <see cref="E:RefreshApplicationRules"/> event. /// </summary> /// <param name="e">The <see cref="ManagedFusion.Rewriter.RefreshRulesEventArgs"/> instance containing the event data.</param> protected virtual void OnRefreshApplicationRules(RefreshRulesEventArgs e) { if (RefreshApplicationRules != null) RefreshApplicationRules(this, e); }
/// <summary> /// Handles the PostHandlerExecute event of the request control. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param> private void context_PostRequestHandlerExecute(object sender, EventArgs e) { #region RefreshApplicationRules Event var refreshRulesArgs = new RefreshRulesEventArgs(); OnRefreshApplicationRules(refreshRulesArgs); // if refresh rules is set to true then clear out the application rules // which will force the LoadApplicationRules event to fire for the next // request if (refreshRulesArgs.RefreshRules) Manager.ClearApplicationRules(); #endregion }