public APIEmptyHandler(Type returnType, APIMethod apiMethod, Func <object> func) { _func = func; _responseType = returnType; ApiMethodProp = apiMethod; _resultType = typeof(APIResult <>).MakeGenericType(_responseType); }
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); }