SignalRUpstreamTemplate(String) Constructor
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.
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
Azure SDK for .NET