Interface IHttpBehaviorBinding
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Behaviors.Http.Abstractions
Assembly: Cephalon.Behaviors.Http.dll
Thin adapter that maps a behavior topology to one HTTP transport.
Each transport variant (JSON-RPC, GraphQL, GraphQL-SSE, GraphQL-WS, SSE, WebSocket, etc.)
implements this interface and is registered in the
public interface IHttpBehaviorBindingProperties
Section titled “Properties”TransportId
Section titled “ TransportId”Gets the canonical transport identifier, e.g. http.jsonrpc.
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
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.