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) |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기