protected WebCallableMethod(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute, WebMethod? webMethod)
        {
            _MethodInfo = methodInfo;
            _WebCallableAttribute = webCallableAttribute;
            _WebMethod = webMethod;

            _Parameters = _MethodInfo.GetParameters();

            for (uint parameterCtr = 0; parameterCtr < _Parameters.Length; parameterCtr++)
                ParameterIndexes[_Parameters[parameterCtr].Name] = parameterCtr;

            List<string> namedPermissions = new List<string>();
            foreach (NamedPermissionAttribute npa in methodInfo.GetCustomAttributes(typeof(NamedPermissionAttribute), true))
                namedPermissions.Add(npa.NamedPermission);

            _NamedPermissions = namedPermissions.ToArray();
        }
Exemple #2
0
 public POST_JSON(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute)
 {
 }
Exemple #3
0
 public POST(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute, ObjectCloud.Interfaces.WebServer.WebMethod.POST)
 {
 }
Exemple #4
0
 public Naked(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute, null)
 {
 }
 public MethodAndWebCallableAttribute(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
 {
     MethodInfo = methodInfo;
     WebCallableAttribute = webCallableAttribute;
 }
Exemple #6
0
 public UrlEncoded(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute, WebMethod? webMethod)
     : base(methodInfo, webCallableAttribute, webMethod)
 {
 }
 public GET_UrlEncoded(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute, ObjectCloud.Interfaces.WebServer.WebMethod.GET)
 {
 }