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

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