Class RestEndpointCandidateStatusExtensions
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Transports
Assembly: Cephalon.Abstractions.dll
Provides canonical wire-name helpers for
public static class RestEndpointCandidateStatusExtensionsInheritance
Section titled “Inheritance”object ← RestEndpointCandidateStatusExtensions
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Methods
Section titled “Methods”GetWireName(RestEndpointCandidateStatus)
Section titled “ GetWireName(RestEndpointCandidateStatus)”Gets the stable wire name used by JSON serialization for the candidate status.
public static string GetWireName(this RestEndpointCandidateStatus status)Parameters
Section titled “Parameters”status RestEndpointCandidateStatus
The candidate status.
Returns
Section titled “Returns”The stable wire name.
TryParseWireName(string?, out RestEndpointCandidateStatus)
Section titled “ TryParseWireName(string?, out RestEndpointCandidateStatus)”Tries to parse the stable wire name used by JSON serialization into a candidate status.
public static bool TryParseWireName(string? value, out RestEndpointCandidateStatus status)Parameters
Section titled “Parameters”value string?
The wire name to parse.
status RestEndpointCandidateStatus
The parsed candidate status when the wire name is recognized.
Returns
Section titled “Returns”true when the wire name maps to a supported candidate status; otherwise, false.