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
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure SDK for .NET