EventHubClient.CreateWithAzureActiveDirectory Methode

Definition

Erstellt mithilfe des Azure Active Directory-Authentifizierungskontexts eine neue instance vonEventHubClient.

public static Microsoft.ServiceBus.Messaging.EventHubClient CreateWithAzureActiveDirectory (Uri endpointAddress, string path, Microsoft.ServiceBus.AzureActiveDirectoryTokenProvider.AuthenticationCallback authCallback, string authority, TimeSpan? operationTimeout = default, bool enableLinkRedirect = true);
static member CreateWithAzureActiveDirectory : Uri * string * Microsoft.ServiceBus.AzureActiveDirectoryTokenProvider.AuthenticationCallback * string * Nullable<TimeSpan> * bool -> Microsoft.ServiceBus.Messaging.EventHubClient
Public Shared Function CreateWithAzureActiveDirectory (endpointAddress As Uri, path As String, authCallback As AzureActiveDirectoryTokenProvider.AuthenticationCallback, authority As String, Optional operationTimeout As Nullable(Of TimeSpan) = Nothing, Optional enableLinkRedirect As Boolean = true) As EventHubClient

Parameter

endpointAddress
Uri

Vollqualifizierter Domänenname für Event Hubs. Höchstwahrscheinlich ist {yournamespace}.servicebus.windows.net

path
String

Der Pfad zum Event Hub.

authCallback
AzureActiveDirectoryTokenProvider.AuthenticationCallback

Der Authentifizierungsrückruf.

authority
String

Adresse der Autorität zum Ausstellen von Token.

operationTimeout
Nullable<TimeSpan>

TimeSpan , der angibt, wie lange der Messagingvorgang abgeschlossen werden muss, bevor ein Timeout ausgeführt wird

enableLinkRedirect
Boolean

Wert, der angibt, ob dieser Transport bereit ist, an das Server-Back-End umgeleitet zu werden.

Gibt zurück

Das neu erstellte Event Hub-Clientobjekt.

Gilt für: