public TaskObjectEndpointMethodExecutor(Type endpointType, MethodInfo handleMethod) : base(endpointType)
        {
            var objectReturnType = handleMethod.ReturnType.GenericTypeArguments[0];

            ObjectReturnType = objectReturnType;
            executor         = BuildHandler(endpointType, handleMethod, objectReturnType, BuildCastExpression);
        }
Esempio n. 2
0
 public SyncObjectEndpointMethodExecutor(Type endpointType, MethodInfo handleMethod) : base(endpointType)
 {
     ObjectReturnType = handleMethod.ReturnType;
     executor         = BuildHandler(endpointType, handleMethod);
 }