Exemplo n.º 1
0
 internal SortField(SortFieldDefinition definition, int index)
     : base(definition, index)
 {
     Member  = definition.Member;
     Handler = definition.Handler ??
               throw ThrowHelper.SortField_ArgumentInvalid_NoHandlerWasFound();
 }
Exemplo n.º 2
0
 public static SchemaException SortInterceptor_NoFieldHandlerFoundForField(
     SortInputTypeDefinition type,
     SortFieldDefinition field) =>
 new SchemaException(
     SchemaErrorBuilder.New()
     .SetMessage(
         DataResources.SortInterceptor_NoFieldHandlerFoundForField,
         field.Name,
         type.Name)
     .Build());
 public override bool CanHandle(
     ITypeDiscoveryContext context,
     SortInputTypeDefinition typeDefinition,
     SortFieldDefinition fieldDefinition) =>
 fieldDefinition.Member is not null;