/// <summary> /// Registers the custom call editor. /// </summary> /// <param name="functionName">Name of the function.</param> /// <param name="tildeBasedPath">A tilde based website path, like ~/Composite/custom.aspx</param> /// <param name="width">The width.</param> /// <param name="height">The height.</param> public static void RegisterCustomCallEditor(string functionName, string tildeBasedPath, int?width, int?height) { Verify.ArgumentCondition(tildeBasedPath.StartsWith("~"), "tildeBasedPath", "Must start with tilde (~)"); lock (_customEditorSettings) { _customEditorSettings[functionName] = new FunctionCallEditorSettings { Url = UrlUtils.ResolvePublicUrl(tildeBasedPath), Width = width, Height = height }; } }
/// <summary> /// Registers the custom call editor. /// </summary> /// <param name="functionName">Name of the function.</param> /// <param name="tildeBasedPath">A tilde based website path, like ~/Composite/custom.aspx</param> /// <param name="width">The width.</param> /// <param name="height">The height.</param> public static void RegisterCustomCallEditor(string functionName, string tildeBasedPath, int? width, int? height) { Verify.ArgumentCondition(tildeBasedPath.StartsWith("~"), "tildeBasedPath", "Must start with tilde (~)"); lock (_customEditorSettings) { _customEditorSettings[functionName] = new FunctionCallEditorSettings { Url = UrlUtils.ResolvePublicUrl(tildeBasedPath), Width = width, Height = height }; } }