WebPubSubEndpointRouteBuilderExtensions.MapWebPubSubHub Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| MapWebPubSubHub<THub>(IEndpointRouteBuilder, String) |
Maps the WebPubSubHub to the path |
| MapWebPubSubHub<THub>(IEndpointRouteBuilder, String, String) |
Maps the WebPubSubHub to the path "/client" with the specified hub name. |
MapWebPubSubHub<THub>(IEndpointRouteBuilder, String)
Maps the WebPubSubHub to the path path.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapWebPubSubHub<THub>(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string path) where THub : Microsoft.Azure.WebPubSub.AspNetCore.WebPubSubHub;
static member MapWebPubSubHub : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder (requires 'Hub :> Microsoft.Azure.WebPubSub.AspNetCore.WebPubSubHub)
<Extension()>
Public Function MapWebPubSubHub(Of THub As WebPubSubHub) (endpoints As IEndpointRouteBuilder, path As String) As IEndpointConventionBuilder
Type Parameters
- THub
User implemented WebPubSubHub. Name of the class has to match the name of the hub in the Azure portal.
Parameters
- endpoints
- IEndpointRouteBuilder
- path
- String
The path to map the WebPubSubHub.
Returns
The IEndpointConventionBuilder.
Applies to
MapWebPubSubHub<THub>(IEndpointRouteBuilder, String, String)
Maps the WebPubSubHub to the path "/client" with the specified hub name.
public static Microsoft.AspNetCore.Builder.IEndpointConventionBuilder MapWebPubSubHub<THub>(this Microsoft.AspNetCore.Routing.IEndpointRouteBuilder endpoints, string path, string hubName) where THub : Microsoft.Azure.WebPubSub.AspNetCore.WebPubSubHub;
static member MapWebPubSubHub : Microsoft.AspNetCore.Routing.IEndpointRouteBuilder * string * string -> Microsoft.AspNetCore.Builder.IEndpointConventionBuilder (requires 'Hub :> Microsoft.Azure.WebPubSub.AspNetCore.WebPubSubHub)
<Extension()>
Public Function MapWebPubSubHub(Of THub As WebPubSubHub) (endpoints As IEndpointRouteBuilder, path As String, hubName As String) As IEndpointConventionBuilder
Type Parameters
- THub
User implemented WebPubSubHub.
Parameters
- endpoints
- IEndpointRouteBuilder
- path
- String
The path to map the WebPubSubHub.
- hubName
- String
The name of the hub to connect to.
Returns
The IEndpointConventionBuilder.