public TaskObjectEndpointMethodExecutor(Type endpointType, MethodInfo handleMethod) : base(endpointType) { var objectReturnType = handleMethod.ReturnType.GenericTypeArguments[0]; ObjectReturnType = objectReturnType; executor = BuildHandler(endpointType, handleMethod, objectReturnType, BuildCastExpression); }
public SyncObjectEndpointMethodExecutor(Type endpointType, MethodInfo handleMethod) : base(endpointType) { ObjectReturnType = handleMethod.ReturnType; executor = BuildHandler(endpointType, handleMethod); }