Skip to content

Class RestEndpointBindingSourceExtensions

Namespace: Cephalon.Abstractions.Transports
Assembly: Cephalon.Abstractions.dll

Provides canonical wire-name helpers for .

public static class RestEndpointBindingSourceExtensions

objectRestEndpointBindingSourceExtensions

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

Gets the stable wire name used by JSON serialization and REST governance config for the binding source.

public static string GetWireName(this RestEndpointBindingSource source)

source RestEndpointBindingSource

The binding source.

string

The stable wire name.

TryParseWireName(string?, out RestEndpointBindingSource)

Section titled “ TryParseWireName(string?, out RestEndpointBindingSource)”

Tries to parse the stable wire name used by JSON serialization and REST governance config into a binding source.

public static bool TryParseWireName(string? value, out RestEndpointBindingSource source)

value string?

The wire name to parse.

source RestEndpointBindingSource

The parsed binding source when the wire name is recognized.

bool

true when the wire name maps to a supported binding source; otherwise, false.