Share via


ActorProxyEventExtensions.UnsubscribeAsync<TEvent> Method

Definition

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