Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
 public POST_JSON(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute)
 {
 }
Ejemplo n.º 3
0
 public POST(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute, ObjectCloud.Interfaces.WebServer.WebMethod.POST)
 {
 }
Ejemplo n.º 4
0
 public Naked(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute, null)
 {
 }
 public MethodAndWebCallableAttribute(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
 {
     MethodInfo = methodInfo;
     WebCallableAttribute = webCallableAttribute;
 }
Ejemplo n.º 6
0
 public UrlEncoded(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute, WebMethod? webMethod)
     : base(methodInfo, webCallableAttribute, webMethod)
 {
 }
Ejemplo n.º 7
0
 public GET_UrlEncoded(MethodInfo methodInfo, WebCallableAttribute webCallableAttribute)
     : base(methodInfo, webCallableAttribute, ObjectCloud.Interfaces.WebServer.WebMethod.GET)
 {
 }