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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for