/// <summary> /// Declares that a method is to be exposed to the web. When no permission is declared, the method is callable by anyone /// </summary> /// <param name="webCallingConvention">The kind of calling convention supported. This instructs ObjectCloud on how to map the HTTP request to the C# method's parameters</param> /// <param name="webReturnConvention">The kind of return convention supported. This instructs the JavaScript code generator on how handle the transaction object</param> public WebCallableAttribute( WebCallingConvention webCallingConvention, WebReturnConvention webReturnConvention) { _WebCallingConvention = webCallingConvention; _WebReturnConvention = webReturnConvention; _MinimumPermissionForWeb = null; _MinimumPermissionForTrusted = null; }
/// <summary> /// Declares that a method is to be exposed to the web /// </summary> /// <param name="webCallingConvention">The kind of calling convention supported. This instructs ObjectCloud on how to map the HTTP request to the C# method's parameters</param> /// <param name="webReturnConvention">The kind of return convention supported. This instructs the JavaScript code generator on how handle the transaction object</param> /// <param name="minimumPermission">The minimum permission needed to call this method from both the web and other trusted sources</param> public WebCallableAttribute( WebCallingConvention webCallingConvention, WebReturnConvention webReturnConvention, FilePermissionEnum minimumPermission) { _WebCallingConvention = webCallingConvention; _WebReturnConvention = webReturnConvention; _MinimumPermissionForWeb = minimumPermission; _MinimumPermissionForTrusted = minimumPermission; }