public SelectionMiddleware( FieldDelegate next, SelectionMiddlewareContext context, ITypeConversion converter) { _next = next ?? throw new ArgumentNullException(nameof(next)); _context = context ?? throw new ArgumentNullException(nameof(context)); _converter = converter ?? TypeConversion.Default; }
public SelectionVisitor( IResolverContext context, ITypeConversion converter, SelectionMiddlewareContext selectionMiddlewareContext) : base(context) { _converter = converter; _selectionMiddlewareContext = selectionMiddlewareContext; }
public SelectionVisitorContext( IResolverContext context, ITypeConversion conversion, FieldSelection fieldSelection, SelectionMiddlewareContext selectionMiddlewareContext) { Conversion = conversion; FieldSelection = fieldSelection; SelectionContext = selectionMiddlewareContext; _context = context; _arguments = fieldSelection.CoerceArguments(context.Variables, conversion); }
public SelectionVisitorContext( IResolverContext context, ITypeConverter conversion, IPreparedSelection fieldSelection, SelectionMiddlewareContext selectionMiddlewareContext) { Conversion = conversion; FieldSelection = fieldSelection; SelectionContext = selectionMiddlewareContext; _arguments = CoerceArguments( fieldSelection.Arguments, context.Variables); }