Skip to content

Class BehaviorRestMethodExtensions

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

Provides canonical wire-name helpers for .

public static class BehaviorRestMethodExtensions

objectBehaviorRestMethodExtensions

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 for the REST method.

public static string GetWireName(this BehaviorRestMethod method)

method BehaviorRestMethod

The REST method.

string

The stable wire name.

TryParseWireName(string?, out BehaviorRestMethod)

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

Tries to parse the stable wire name used by JSON serialization into a REST method.

public static bool TryParseWireName(string? value, out BehaviorRestMethod method)

value string?

The wire name to parse.

method BehaviorRestMethod

The parsed REST method when the wire name is recognized.

bool

true when the wire name maps to a supported REST method; otherwise, false.