ข้ามไปยังเนื้อหา

Class BehaviorRestProfileDescriptor

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Behaviors.Http.Abstractions
Assembly: Cephalon.Behaviors.Http.dll

Describes the metadata-only REST projection preference declared by a behavior.

public sealed record BehaviorRestProfileDescriptor : IEquatable<BehaviorRestProfileDescriptor>

objectBehaviorRestProfileDescriptor

IEquatable<BehaviorRestProfileDescriptor>

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

BehaviorRestProfileDescriptor(string, BehaviorRestMethod, string, int?, IReadOnlyList<BehaviorRestBindingDescriptor>?, bool)

Section titled “ BehaviorRestProfileDescriptor(string, BehaviorRestMethod, string, int?, IReadOnlyList<BehaviorRestBindingDescriptor>?, bool)”

Describes the metadata-only REST projection preference declared by a behavior.

public BehaviorRestProfileDescriptor(string BehaviorId, BehaviorRestMethod Method, string RelativePattern, int? ApiVersionMajor, IReadOnlyList<BehaviorRestBindingDescriptor>? Bindings = null, bool PreserveImplicitQueryFallback = false)

BehaviorId string

The stable Cephalon behavior identifier.

Method BehaviorRestMethod

The candidate REST method.

RelativePattern string

The candidate route pattern relative to a future owning REST group.

ApiVersionMajor int?

The candidate API major version, or null when the behavior leaves version selection to the owning module or host defaults.

Bindings IReadOnlyList<BehaviorRestBindingDescriptor>?

Optional explicit input-binding hints that describe where individual input properties should be sourced from when an owning module consumes the profile.

PreserveImplicitQueryFallback bool

Indicates whether explicit profile bindings should preserve the remaining implicit query-string fallback surface when an owning module consumes the profile.

The candidate API major version, or null when the behavior leaves version selection to the owning module or host defaults.

public int? ApiVersionMajor { get; init; }

int?

The stable Cephalon behavior identifier.

public string BehaviorId { get; init; }

string

Optional explicit input-binding hints that describe where individual input properties should be sourced from when an owning module consumes the profile.

public IReadOnlyList<BehaviorRestBindingDescriptor>? Bindings { get; init; }

IReadOnlyList<BehaviorRestBindingDescriptor>?

The candidate REST method.

public BehaviorRestMethod Method { get; init; }

BehaviorRestMethod

Indicates whether explicit profile bindings should preserve the remaining implicit query-string fallback surface when an owning module consumes the profile.

public bool PreserveImplicitQueryFallback { get; init; }

bool

The candidate route pattern relative to a future owning REST group.

public string RelativePattern { get; init; }

string