EventHubSender 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.
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
type EventHubSender = class
inherit ClientEntity
Public NotInheritable Class EventHubSender
Inherits ClientEntity
- Inheritance
Properties
IsClosed | (Inherited from ClientEntity) |
PartitionId |
Gets the partition ID for a logical partition of an Event Hub. |
Path |
Gets the path of the Event Hub. |
RetryPolicy | (Inherited from ClientEntity) |
ThisLock | (Inherited from ClientEntity) |
Methods
Abort() |
Performs abort functionality on the messaging entity. (Inherited from ClientEntity) |
Close() |
Sends a cleanup message to Service Bus to signal the completion of the usage of an entity. (Inherited from ClientEntity) |
CloseAsync() |
Sends a cleanup message asynchronously to Service Bus to signal the completion of the usage of an entity. (Inherited from ClientEntity) |
CreateBatch() |
Creates a batch where event data objects can be added for later SendBatch or SendBatchAsync call. |
CreateFromConnectionString(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. |
Fault() |
For internal use only. Do not inherit from this class. (Inherited from ClientEntity) |
OnAbort() | (Inherited from ClientEntity) |
OnBeginClose(TimeSpan, AsyncCallback, Object) | (Inherited from ClientEntity) |
OnBeginOpen(TimeSpan, AsyncCallback, Object) | (Inherited from ClientEntity) |
OnClose(TimeSpan) | (Inherited from ClientEntity) |
OnClosed() | (Inherited from ClientEntity) |
OnEndClose(IAsyncResult) | (Inherited from ClientEntity) |
OnEndOpen(IAsyncResult) | (Inherited from ClientEntity) |
OnFaulted() | (Inherited from ClientEntity) |
OnOpen(TimeSpan) | (Inherited from ClientEntity) |
OnOpened() | (Inherited from ClientEntity) |
Send(EventData) |
Sends event data to the logical partition represented by PartitionId. |
SendAsync(EventData) |
Asynchronous version of Send(EventData). |
SendBatch(IEnumerable<EventData>) |
Sends a batch of event data to the logical partition represented by PartitionId. |
SendBatchAsync(IEnumerable<EventData>) |
Asynchronously sends a batch of event data to the logical partition represented by PartitionId. |
ThrowIfClosed() | (Inherited from ClientEntity) |
ThrowIfDisposed() | (Inherited from ClientEntity) |
ThrowIfDisposedOrImmutable() | (Inherited from ClientEntity) |
ThrowIfDisposedOrNotOpen() | (Inherited from ClientEntity) |
ThrowIfFaulted() | (Inherited from ClientEntity) |