ConnectionsRouteBuilder.MapConnections 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
MapConnections(PathString, Action<IConnectionBuilder>) |
將傳入要求與所提供連接管線的指定路徑對應。 |
MapConnections(PathString, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>) |
將傳入要求與所提供連接管線的指定路徑對應。 |
MapConnections(PathString, Action<IConnectionBuilder>)
將傳入要求與所提供連接管線的指定路徑對應。
public:
void MapConnections(Microsoft::AspNetCore::Http::PathString path, Action<Microsoft::AspNetCore::Connections::IConnectionBuilder ^> ^ configure);
public void MapConnections (Microsoft.AspNetCore.Http.PathString path, Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> configure);
member this.MapConnections : Microsoft.AspNetCore.Http.PathString * Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> -> unit
Public Sub MapConnections (path As PathString, configure As Action(Of IConnectionBuilder))
參數
- path
- PathString
要求路徑。
- configure
- Action<IConnectionBuilder>
要設定連接的回呼。
適用於
MapConnections(PathString, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>)
將傳入要求與所提供連接管線的指定路徑對應。
public:
void MapConnections(Microsoft::AspNetCore::Http::PathString path, Microsoft::AspNetCore::Http::Connections::HttpConnectionDispatcherOptions ^ options, Action<Microsoft::AspNetCore::Connections::IConnectionBuilder ^> ^ configure);
public void MapConnections (Microsoft.AspNetCore.Http.PathString path, Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions options, Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> configure);
member this.MapConnections : Microsoft.AspNetCore.Http.PathString * Microsoft.AspNetCore.Http.Connections.HttpConnectionDispatcherOptions * Action<Microsoft.AspNetCore.Connections.IConnectionBuilder> -> unit
Public Sub MapConnections (path As PathString, options As HttpConnectionDispatcherOptions, configure As Action(Of IConnectionBuilder))
參數
- path
- PathString
要求路徑。
- options
- HttpConnectionDispatcherOptions
用來設定連線的選項。
- configure
- Action<IConnectionBuilder>
要設定連接的回呼。