Share via


WebPubSubEndpointRouteBuilderExtensions.MapWebPubSubHub Method

Definition

Overloads

MapWebPubSubHub<THub>(IEndpointRouteBuilder, String)

Maps the WebPubSubHub to the path path.

MapWebPubSubHub<THub>(IEndpointRouteBuilder, String, String)

Maps the WebPubSubHub to the path "/client" with the specified hub name.

MapWebPubSubHub<THub>(IEndpointRouteBuilder, String)

Source:
WebPubSubEndpointRouteBuilderExtensions.cs

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

path
String

The path to map the WebPubSubHub.

Returns

The IEndpointConventionBuilder.

Applies to

MapWebPubSubHub<THub>(IEndpointRouteBuilder, String, String)

Source:
WebPubSubEndpointRouteBuilderExtensions.cs

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

path
String

The path to map the WebPubSubHub.

hubName
String

The name of the hub to connect to.

Returns

The IEndpointConventionBuilder.

Applies to