ActorProxyEventExtensions.UnsubscribeAsync<TEvent> Method
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.
Unsubscribe from a published actor event.
public static System.Threading.Tasks.Task UnsubscribeAsync<TEvent> (this Microsoft.ServiceFabric.Actors.IActorEventPublisher actorProxy, TEvent subscriber);
static member UnsubscribeAsync : Microsoft.ServiceFabric.Actors.IActorEventPublisher * 'Event -> System.Threading.Tasks.Task
<Extension()>
Public Function UnsubscribeAsync(Of TEvent) (actorProxy As IActorEventPublisher, subscriber As TEvent) As Task
Type Parameters
- TEvent
The type of the event interface.
Parameters
- actorProxy
- IActorEventPublisher
The actor that publishes the event.
- subscriber
- TEvent
The subscriber that receives the event.
Returns
A task that represents the asynchronous operation of un-subscribing from a published actor event.
Exceptions
When actorProxy is not of type ActorProxy
.When TEvent doesn't implement IActorEvents
Applies to
Azure SDK for .NET
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin