/// <summary>Executes the <paramref name="function"/> using the specified <paramref name="callArguments"/>.</summary> /// <param name="function">The <see cref="WxeFunction"/> to be executed. Must not be <see langword="null" />.</param> /// <param name="callArguments">The <see cref="IWxeCallArguments"/> used to control the function invocation. Must not be <see langword="null" />.</param> public void ExecuteFunction(WxeFunction function, IWxeCallArguments callArguments) { ArgumentUtility.CheckNotNull("function", function); ArgumentUtility.CheckNotNull("callArguments", callArguments); callArguments.Dispatch(_wxePageInfo.Executor, function); }
private static void Execute(IWxePage page, WxeFunction function, IWxeCallArguments arguments) { try { page.ExecuteFunction(function, arguments); } catch (WxeCallExternalException) { } }