Skip to content

Class HttpBehaviorBindingRegistry

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

Default implementation of . Bindings are indexed at construction time using a frozen dictionary for O(1) lock-free lookup on every request.

public sealed class HttpBehaviorBindingRegistry : IHttpBehaviorBindingRegistry

objectHttpBehaviorBindingRegistry

IHttpBehaviorBindingRegistry

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

HttpBehaviorBindingRegistry(IEnumerable<IHttpBehaviorBinding>)

Section titled “ HttpBehaviorBindingRegistry(IEnumerable<IHttpBehaviorBinding>)”

Initializes the registry from the supplied enumeration of bindings. Duplicate transport IDs are not allowed; the last registration wins.

public HttpBehaviorBindingRegistry(IEnumerable<IHttpBehaviorBinding> bindings)

bindings IEnumerable<IHttpBehaviorBinding>

The bindings to register.

Gets all registered bindings in registration order.

public IReadOnlyList<IHttpBehaviorBinding> All { get; }

IReadOnlyList<IHttpBehaviorBinding>

Returns the binding registered for transportId, or null if none is registered.

public IHttpBehaviorBinding? GetBinding(string transportId)

transportId string

The canonical transport identifier, e.g. http.jsonrpc.

IHttpBehaviorBinding?

The matching binding, or null.