Sdílet prostřednictvím


SignalRUpstreamTemplate(String) Constructor

Definition

Initializes a new instance of SignalRUpstreamTemplate.

public SignalRUpstreamTemplate (string urlTemplate);
new Azure.ResourceManager.SignalR.Models.SignalRUpstreamTemplate : string -> Azure.ResourceManager.SignalR.Models.SignalRUpstreamTemplate
Public Sub New (urlTemplate As String)

Parameters

urlTemplate
String

Gets or sets the Upstream URL template. You can use 3 predefined parameters {hub}, {category} {event} inside the template, the value of the Upstream URL is dynamically calculated when the client request comes in. For example, if the urlTemplate is http://example.com/{hub}/api/{event}, with a client request from hub chat connects, it will first POST to this URL: http://example.com/chat/api/connect.

Exceptions

urlTemplate is null.

Applies to