Exemplo n.º 1
0
 public new IEnumTypeDescriptor <T> BindItems(
     BindingBehavior behavior) =>
 BindValues(behavior);
 public static IRequestExecutorBuilder BindComplexType <T>(
     this IRequestExecutorBuilder builder,
     Action <IBindType <T> >?configure = default,
     BindingBehavior bindingBehavior   = BindingBehavior.Implicit)
     where T : class =>
 builder.ConfigureSchema(b => b.BindComplexType(bindingBehavior, configure));
 protected IFilterInputTypeDescriptor BindFields(
     BindingBehavior bindingBehavior)
 {
     Definition.Fields.BindingBehavior = bindingBehavior;
     return(this);
 }
Exemplo n.º 4
0
 protected ScalarType(NameString name, BindingBehavior bind = BindingBehavior.Explicit)
     : base(name, bind)
 {
 }
 public ISortInputTypeDescriptor <T> BindFields(
     BindingBehavior behavior)
 {
     Definition.Fields.BindingBehavior = behavior;
     return(this);
 }
 /// <inheritdoc/>
 public new IObjectFilterFieldDescriptor <TObject> BindFilters(
     BindingBehavior bindingBehavior)
 {
     base.BindFilters(bindingBehavior);
     return(this);
 }
 public IDirectiveTypeDescriptor <T> BindArguments(
     BindingBehavior behavior)
 {
     Definition.Arguments.BindingBehavior = behavior;
     return(this);
 }
 protected void BindItems(BindingBehavior bindingBehavior)
 {
     EnumDescription.ValueBindingBehavior = bindingBehavior;
 }
 IEnumTypeDescriptor IEnumTypeDescriptor.BindItems(
     BindingBehavior bindingBehavior)
 {
     BindItems(bindingBehavior);
     return(this);
 }
Exemplo n.º 10
0
 public SignedByteType(NameString name, BindingBehavior bind = BindingBehavior.Explicit) : base(name, sbyte.MinValue, SByte.MaxValue, bind)
 {
 }
 /// <inheritdoc />
 public new IFilterInputTypeDescriptor <T> BindFields(BindingBehavior bindingBehavior)
 {
     base.BindFields(bindingBehavior);
     return(this);
 }
Exemplo n.º 12
0
 IEnumTypeDescriptor IEnumTypeDescriptor.BindItems(BindingBehavior bindingBehavior)
 {
     BindingBehavior = bindingBehavior;
     return this;
 }
Exemplo n.º 13
0
 public IResolverTypeBindingBuilder SetFieldBinding(
     BindingBehavior behavior)
 {
     _bindingInfo.BindingBehavior = behavior;
     return(this);
 }
Exemplo n.º 14
0
 /// <summary>
 /// Initializes a new instance of <see cref="FieldSetType"/>.
 /// </summary>
 /// <param name="name">
 /// The name the scalar shall have.
 /// </param>
 /// <param name="bind">
 /// Defines if this scalar shall bind implicitly to <see cref="SelectionSetNode"/>.
 /// </param>
 public FieldSetType(NameString name, BindingBehavior bind = BindingBehavior.Explicit)
     : base(name, bind)
 {
     Description = FederationResources.FieldsetType_Description;
 }
Exemplo n.º 15
0
 public new IEnumTypeDescriptor <T> BindValues(BindingBehavior behavior)
 {
     base.BindValues(behavior);
     return(this);
 }
Exemplo n.º 16
0
 /// <inheritdoc/>
 public new IArrayFilterFieldDescriptor <TArray> BindFilters(
     BindingBehavior bindingBehavior)
 {
     base.BindFilters(bindingBehavior);
     return(this);
 }
Exemplo n.º 17
0
 public TimeSpanType(
     TimeSpanFormat format = TimeSpanFormat.Iso8601,
     BindingBehavior bind  = BindingBehavior.Implicit)
     : this(ScalarNames.TimeSpan, TypeResources.TimeSpanType_Description, format, bind)
 {
 }
Exemplo n.º 18
0
 public IEnumTypeDescriptor BindItems(
     BindingBehavior behavior)
 {
     Definition.Values.BindingBehavior = behavior;
     return(this);
 }
Exemplo n.º 19
0
 public IInterfaceTypeDescriptor <T> BindFields(
     BindingBehavior bindingBehavior)
 {
     Definition.Fields.BindingBehavior = bindingBehavior;
     return(this);
 }
Exemplo n.º 20
0
 public GeometryType(
     NameString name,
     BindingBehavior bind = BindingBehavior.Explicit)
     : base(name, bind)
 {
 }
Exemplo n.º 21
0
 /// <inheritdoc/>
 public new IBooleanFilterFieldDescriptor BindFilters(
     BindingBehavior bindingBehavior)
 {
     base.BindFilters(bindingBehavior);
     return(this);
 }
Exemplo n.º 22
0
 /// <summary>
 /// Initializes a new instance of <see cref="AnyType"/>.
 /// </summary>
 /// <param name="name">
 /// The name the scalar shall have.
 /// </param>
 /// <param name="bind">
 /// Defines if this scalar shall bind implicitly to <see cref="SelectionSetNode"/>.
 /// </param>
 public AnyType(NameString name, BindingBehavior bind = BindingBehavior.Explicit)
     : base(name, bind)
 {
     Description = FederationResources.Any_Description;
 }
Exemplo n.º 23
0
 public IComplexTypeBindingBuilder SetFieldBinding(
     BindingBehavior behavior)
 {
     _bindingInfo.BindingBehavior = behavior;
     return(this);
 }
 protected FilterFieldDescriptorBase BindFilters(
     BindingBehavior bindingBehavior)
 {
     Definition.Filters.BindingBehavior = bindingBehavior;
     return(this);
 }
Exemplo n.º 25
0
 public BindingBehaviorAttribute(BindingBehavior behavior)
 {
     Behavior = behavior;
 }
 /// <inheritdoc/>
 public new IComparableFilterFieldDescriptor BindFilters(
     BindingBehavior bindingBehavior)
 {
     base.BindFilters(bindingBehavior);
     return(this);
 }
Exemplo n.º 27
0
 public BindingBehaviorAttribute(BindingBehavior behavior)
 {
     Behavior = behavior;
 }
Exemplo n.º 28
0
        protected ScalarType(NameString name, BindingBehavior bind = BindingBehavior.Explicit)
        {
            Name = name.EnsureNotEmpty(nameof(name));
            Bind = bind;

            Directives = default !;