public void ExecuteFunction(WxeFunction function, Control sender, WxeCallOptions options) { ArgumentUtility.CheckNotNull("function", function); // sender can be null ArgumentUtility.CheckNotNull("options", options); WxePermaUrlOptions permaUrlOptions = options.PermaUrlOptions; WxeRepostOptions repostOptions = WxeRepostOptions.DoRepost(sender); _wxePageInfo.CurrentPageStep.ExecuteFunction(new PreProcessingSubFunctionStateParameters(_page, function, permaUrlOptions), repostOptions); }
public void ExecuteFunctionNoRepost(WxeFunction function, Control sender, WxeCallOptionsNoRepost options) { ArgumentUtility.CheckNotNull("function", function); ArgumentUtility.CheckNotNull("sender", sender); ArgumentUtility.CheckNotNull("options", options); bool usesEventTarget = options.UsesEventTarget ?? UsesEventTarget; WxePermaUrlOptions permaUrlOptions = options.PermaUrlOptions; WxeRepostOptions repostOptions = WxeRepostOptions.SuppressRepost(sender, usesEventTarget); _wxePageInfo.CurrentPageStep.ExecuteFunction(new PreProcessingSubFunctionStateParameters(_page, function, permaUrlOptions), repostOptions); }