Skip to content

Class BehaviorRestBindingDescriptor

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

Describes one explicit request-source binding for a behavior input property on a metadata-only REST profile.

public sealed record BehaviorRestBindingDescriptor : IEquatable<BehaviorRestBindingDescriptor>

objectBehaviorRestBindingDescriptor

IEquatable<BehaviorRestBindingDescriptor>

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

BehaviorRestBindingDescriptor(string, BehaviorRestBindingSource, string?)

Section titled “ BehaviorRestBindingDescriptor(string, BehaviorRestBindingSource, string?)”

Describes one explicit request-source binding for a behavior input property on a metadata-only REST profile.

public BehaviorRestBindingDescriptor(string PropertyName, BehaviorRestBindingSource Source, string? Name = null)

PropertyName string

The behavior input property that receives the bound value.

Source BehaviorRestBindingSource

The HTTP request source that supplies the value.

Name string?

The external route key, query-string key, header name, or body property name to read from. When null, Cephalon falls back to PropertyName.

The external route key, query-string key, header name, or body property name to read from. When null, Cephalon falls back to PropertyName.

public string? Name { get; init; }

string?

The behavior input property that receives the bound value.

public string PropertyName { get; init; }

string

The HTTP request source that supplies the value.

public BehaviorRestBindingSource Source { get; init; }

BehaviorRestBindingSource