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
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per