WebPubSubServiceClient Constructors
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
WebPubSubServiceClient() |
Initializes a new instance of WebPubSubServiceClient for mocking. |
WebPubSubServiceClient(String, String) |
Initializes a new instance of the WebPubSubServiceClient. |
WebPubSubServiceClient(String, String, WebPubSubServiceClientOptions) |
Initializes a new instance of the WebPubSubServiceClient. |
WebPubSubServiceClient(Uri, String, AzureKeyCredential) |
Initializes a new instance of WebPubSubServiceClient. |
WebPubSubServiceClient(Uri, String, TokenCredential) |
Initializes a new instance of WebPubSubServiceClient. |
WebPubSubServiceClient(Uri, String, AzureKeyCredential, WebPubSubServiceClientOptions) |
Initializes a new instance of WebPubSubServiceClient. |
WebPubSubServiceClient(Uri, String, TokenCredential, WebPubSubServiceClientOptions) |
Initializes a new instance of WebPubSubServiceClient. |
WebPubSubServiceClient()
- Source:
- WebPubSubServiceClient.cs
Initializes a new instance of WebPubSubServiceClient for mocking.
protected WebPubSubServiceClient ();
Protected Sub New ()
Applies to
WebPubSubServiceClient(String, String)
Initializes a new instance of the WebPubSubServiceClient.
public WebPubSubServiceClient (string connectionString, string hub);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : string * string -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (connectionString As String, hub As String)
Parameters
- connectionString
- String
Connection string contains Endpoint and AccessKey.
- hub
- String
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.
Applies to
WebPubSubServiceClient(String, String, WebPubSubServiceClientOptions)
Initializes a new instance of the WebPubSubServiceClient.
public WebPubSubServiceClient (string connectionString, string hub, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : string * string * Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (connectionString As String, hub As String, options As WebPubSubServiceClientOptions)
Parameters
- connectionString
- String
Connection string contains Endpoint and AccessKey.
- hub
- String
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.
- options
- WebPubSubServiceClientOptions
Applies to
WebPubSubServiceClient(Uri, String, AzureKeyCredential)
Initializes a new instance of WebPubSubServiceClient.
public WebPubSubServiceClient (Uri endpoint, string hub, Azure.AzureKeyCredential credential);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.AzureKeyCredential -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As AzureKeyCredential)
Parameters
- endpoint
- Uri
server parameter.
- hub
- String
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.
- credential
- AzureKeyCredential
A credential used to authenticate to an Azure Service.
Applies to
WebPubSubServiceClient(Uri, String, TokenCredential)
Initializes a new instance of WebPubSubServiceClient.
public WebPubSubServiceClient (Uri endpoint, string hub, Azure.Core.TokenCredential credential);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.Core.TokenCredential -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As TokenCredential)
Parameters
- endpoint
- Uri
server parameter.
- hub
- String
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.
- credential
- TokenCredential
A token credential used to authenticate to an Azure Service.
Applies to
WebPubSubServiceClient(Uri, String, AzureKeyCredential, WebPubSubServiceClientOptions)
Initializes a new instance of WebPubSubServiceClient.
public WebPubSubServiceClient (Uri endpoint, string hub, Azure.AzureKeyCredential credential, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.AzureKeyCredential * Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As AzureKeyCredential, options As WebPubSubServiceClientOptions)
Parameters
- endpoint
- Uri
server parameter.
- hub
- String
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.
- credential
- AzureKeyCredential
A credential used to authenticate to an Azure Service.
- options
- WebPubSubServiceClientOptions
The options for configuring the client.
Applies to
WebPubSubServiceClient(Uri, String, TokenCredential, WebPubSubServiceClientOptions)
Initializes a new instance of WebPubSubServiceClient.
public WebPubSubServiceClient (Uri endpoint, string hub, Azure.Core.TokenCredential credential, Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions options);
new Azure.Messaging.WebPubSub.WebPubSubServiceClient : Uri * string * Azure.Core.TokenCredential * Azure.Messaging.WebPubSub.WebPubSubServiceClientOptions -> Azure.Messaging.WebPubSub.WebPubSubServiceClient
Public Sub New (endpoint As Uri, hub As String, credential As TokenCredential, options As WebPubSubServiceClientOptions)
Parameters
- endpoint
- Uri
server parameter.
- hub
- String
Target hub name, which should start with alphabetic characters and only contain alpha-numeric characters or underscore.
- credential
- TokenCredential
A token credential used to authenticate to an Azure Service.
- options
- WebPubSubServiceClientOptions
The options for configuring the client.