EventHubBufferedProducerClient.IsPublishing Property
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.
Indicates whether or not this EventHubBufferedProducerClient is currently active and publishing queued events.
public virtual bool IsPublishing { get; }
member this.IsPublishing : bool
Public Overridable ReadOnly Property IsPublishing As Boolean
Property Value
true
if the client is publishing; otherwise, false
.
Remarks
The producer will begin publishing when an event is enqueued and should remain active until either CloseAsync(Boolean, CancellationToken) or DisposeAsync() is called.
If any events were enqueued, IsClosed is false
, and IsPublishing is false
, this likely indicates an unrecoverable state for the client. It is recommended to close the EventHubBufferedProducerClient and create a new instance.
In this state, exceptions will be reported by the Event Hubs client library logs, which can be captured using the AzureEventSourceListener.
Applies to
Azure SDK for .NET