Exemple #1
0
 public APIEmptyHandler(Type returnType, APIMethodAttribute apiMethod, Func <object> func)
 {
     _func         = func;
     _responseType = returnType;
     ApiMethodProp = apiMethod;
     _resultType   = typeof(APIResult <>).MakeGenericType(_responseType);
 }
        public APIHandler(Type requestType, Type responseType, APIMethodAttribute _apimethod, Func <object, object> func)
        {
            _func         = func;
            _requestType  = requestType;
            _responseType = responseType;
            ApiMethodProp = _apimethod;

            _resultType = typeof(APIResult <>).MakeGenericType(_responseType);
        }