Skip to content

Class RestEndpointBindingFallbackModeExtensions

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

Provides canonical wire-name helpers for .

public static class RestEndpointBindingFallbackModeExtensions

objectRestEndpointBindingFallbackModeExtensions

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

GetWireName(RestEndpointBindingFallbackMode)

Section titled “ GetWireName(RestEndpointBindingFallbackMode)”

Gets the stable wire name used by JSON serialization and compatibility metadata for the fallback mode.

public static string GetWireName(this RestEndpointBindingFallbackMode mode)

mode RestEndpointBindingFallbackMode

The fallback mode.

string

The stable wire name.

TryParseWireName(string?, out RestEndpointBindingFallbackMode)

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

Tries to parse the stable wire name used by JSON serialization and compatibility metadata into a fallback mode.

public static bool TryParseWireName(string? value, out RestEndpointBindingFallbackMode mode)

value string?

The wire name to parse.

mode RestEndpointBindingFallbackMode

The parsed fallback mode when the wire name is recognized.

bool

true when the wire name maps to a supported fallback mode; otherwise, false.