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>Inheritance
Section titled “Inheritance”object ← BehaviorRestProfileDescriptor
Implements
Section titled “Implements”IEquatable<BehaviorRestProfileDescriptor>
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”ApiVersionMajor
Section titled “ ApiVersionMajor”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; }Property Value
Section titled “Property Value”int?
BehaviorId
Section titled “ BehaviorId”The stable Cephalon behavior identifier.
public string BehaviorId { get; init; }Property Value
Section titled “Property Value”Bindings
Section titled “ Bindings”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; }Property Value
Section titled “Property Value”IReadOnlyList<BehaviorRestBindingDescriptor>?
Method
Section titled “ Method”The candidate REST method.
public BehaviorRestMethod Method { get; init; }Property Value
Section titled “Property Value”PreserveImplicitQueryFallback
Section titled “ PreserveImplicitQueryFallback”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; }Property Value
Section titled “Property Value”RelativePattern
Section titled “ RelativePattern”The candidate route pattern relative to a future owning REST group.
public string RelativePattern { get; init; }