Skip to content

Class RestEndpointAuthoringPolicySuppressionKindExtensions

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

Provides canonical wire-name helpers for .

public static class RestEndpointAuthoringPolicySuppressionKindExtensions

objectRestEndpointAuthoringPolicySuppressionKindExtensions

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

GetWireName(RestEndpointAuthoringPolicySuppressionKind)

Section titled “ GetWireName(RestEndpointAuthoringPolicySuppressionKind)”

Gets the stable wire name used by JSON serialization and runtime introspection for the suppression kind.

public static string GetWireName(this RestEndpointAuthoringPolicySuppressionKind kind)

kind RestEndpointAuthoringPolicySuppressionKind

The suppression kind.

string

The stable wire name.

TryParseWireName(string?, out RestEndpointAuthoringPolicySuppressionKind)

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

Tries to parse the stable wire name used by JSON serialization and runtime introspection into a suppression kind.

public static bool TryParseWireName(string? value, out RestEndpointAuthoringPolicySuppressionKind kind)

value string?

The wire name to parse.

kind RestEndpointAuthoringPolicySuppressionKind

The parsed suppression kind when the wire name is recognized.

bool

true when the wire name maps to a supported suppression kind; otherwise, false.