Event​Hub​Sender Class

Definition

A client class used in send operations for an Event Hub. Represents a logical sender connection to a specific Event Hub partition.

public sealed class EventHubSender : Microsoft.ServiceBus.Messaging.ClientEntity
Inheritance
EventHubSender

Inherited Members

Microsoft.ServiceBus.Messaging.ClientEntity

Properties

Partition​Id

Gets the partition ID for a logical partition of an Event Hub.

Path

Gets the path of the Event Hub.

Methods

Create​Batch()

Creates a batch where event data objects can be added for later SendBatch or SendBatchAsync call.

Create​From​Connection​String(​String)

Creates a new instance of EventHubSender using the supplied connection string. Intended to be used to send using a ConnectionString with SharedAcessSignature and Publisher.

Send(​Event​Data)

Sends event data to the logical partition represented by PartitionId.

Send​Async(​Event​Data)

Asynchronous version of Send(EventData).

Send​Batch(​IEnumerable<​Event​Data>)

Sends a batch of event data to the logical partition represented by PartitionId.

Send​Batch​Async(​IEnumerable<​Event​Data>)

Asynchronously sends a batch of event data to the logical partition represented by PartitionId.

Extension Methods

IsDefined(Object)
IsNull(Object)
IsPrimitive(Object)