EventHubsClient Class
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.
Typed client for eventhubs connector.
public class EventHubsClient : Azure.Connectors.Sdk.ConnectorClientBase
type EventHubsClient = class
inherit ConnectorClientBase
Public Class EventHubsClient
Inherits ConnectorClientBase
- Inheritance
Constructors
| Name | Description |
|---|---|
| EventHubsClient() | |
| EventHubsClient(String) |
Creates a new EventHubsClient with the specified connection runtime URL string. Uses ManagedIdentityCredential by default. |
| EventHubsClient(Uri, TokenCredential, ConnectorClientOptions) |
Creates a new EventHubsClient with the specified connection runtime URL and credential. |
| EventHubsClient(Uri, TokenCredential) |
Creates a new EventHubsClient with the specified connection runtime URL and credential. |
| EventHubsClient(Uri) |
Creates a new EventHubsClient with the specified connection runtime URL. Uses ManagedIdentityCredential by default. |
Properties
| Name | Description |
|---|---|
| ConnectorName | |
| Pipeline |
Gets the HTTP pipeline for making connector requests. (Inherited from ConnectorClientBase) |
Methods
| Name | Description |
|---|---|
| CallConnectorAsync(HttpMethod, String, Object, CancellationToken) |
Sends a connector API request with no response body. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics. (Inherited from ConnectorClientBase) |
| CallConnectorAsync<TResponse>(HttpMethod, String, Object, CancellationToken) |
Sends a connector API request and deserializes the JSON response. Uses the Azure.Core HttpPipeline for retry, authentication, and diagnostics. (Inherited from ConnectorClientBase) |
| Dispose() | (Inherited from ConnectorClientBase) |
| Dispose(Boolean) |
Disposes the connector client resources. (Inherited from ConnectorClientBase) |
| GenerateEventSchemaAsync(String, String, CancellationToken) |
Generate event schema V2 |
| GetConsumerGroupsAsync(String, CancellationToken) |
Get all the consumer groups for an event hub |
| GetContentTypesAsync(CancellationToken) |
Get all content types |
| GetEventHubsAsync(CancellationToken) |
Get all Event Hubs in a namespace |
| GetPartitionKeysAsync(String, CancellationToken) |
Get all partition keys in an Event Hub |
| ResolveUrl(String) |
Resolves a relative path or validates an absolute URL against the connection runtime URL. When the NextLink host matches the connection URL, it's used as-is. When it doesn't match (codeless connectors like ARM return nextLink pointing to the backend host e.g. management.azure.com), the path+query is extracted and routed through the APIM proxy. This is safe because the request still goes through the connection runtime URL with API Hub auth. (Inherited from ConnectorClientBase) |
| SendEventAsync(String, SendEvent, String, CancellationToken) |
Send event |
| SendEventsAsync(String, List<SendEvent>, String, CancellationToken) |
Send one or more events to the Event Hub partition |