Class GraphqlWsBehaviorBinding
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Http.Bindings
Assembly: Cephalon.Behaviors.Http.dll
GraphQL over WebSocket transport binding (transport ID: http.graphql-ws).
Upgrades canonical routes such as GET /graphql-ws/v1/cart/get to a WebSocket connection.
The connection implements the
graphql-transport-ws sub-protocol:
connection_init → connection_ack → subscribe → next → complete.
public sealed class GraphqlWsBehaviorBinding : IHttpBehaviorBindingInheritance
Section titled “Inheritance”object ← GraphqlWsBehaviorBinding
Implements
Section titled “Implements”Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”GraphqlWsBehaviorBinding(IConfiguration?)
Section titled “ GraphqlWsBehaviorBinding(IConfiguration?)”Initializes a new
public GraphqlWsBehaviorBinding(IConfiguration? configuration = null)Parameters
Section titled “Parameters”configuration IConfiguration?
Optional configuration used to resolve canonical behavior transport routes.
When omitted, the binding falls back to the default /graphql-ws/v1 route policy.
Properties
Section titled “Properties”TransportId
Section titled “ TransportId”Gets the canonical transport identifier, e.g. http.jsonrpc.
public string TransportId { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”MapAsync(WebApplication, BehaviorTopologyDescriptor, BehaviorDispatcher)
Section titled “ MapAsync(WebApplication, BehaviorTopologyDescriptor, BehaviorDispatcher)”Maps the behavior’s routes/endpoints onto the
public Task MapAsync(WebApplication app, BehaviorTopologyDescriptor descriptor, BehaviorDispatcher dispatcher)Parameters
Section titled “Parameters”app WebApplication
The web application to register routes on.
descriptor BehaviorTopologyDescriptor
The behavior topology descriptor.
dispatcher BehaviorDispatcher
The behavior dispatcher to invoke.
Returns
Section titled “Returns”A task that completes when all routes are mapped.