EventProcessorHost.UnregisterEventProcessorAsync Method ()
Asynchronously shuts down the EventProcessorHost instance. This method maintains the leases on all partitions currently held, and enables each IEventProcessor instance to shut down cleanly by invoking the CloseAsync method with a Shutdown object.
Namespace: Microsoft.ServiceBus.Messaging
Assembly: Microsoft.ServiceBus.Messaging.EventProcessorHost (in Microsoft.ServiceBus.Messaging.EventProcessorHost.dll)
Syntax
public Task UnregisterEventProcessorAsync()
public:
Task^ UnregisterEventProcessorAsync()
member UnregisterEventProcessorAsync : unit -> Task
Public Function UnregisterEventProcessorAsync As Task
Return Value
Type: System.Threading.Tasks.Task
A task that indicates the EventProcessorHost instance has stopped.
See Also
EventProcessorHost Class
Microsoft.ServiceBus.Messaging Namespace
Return to top