Is it possible to cancel activation on ActivateAsync, based on initialization code and the ActorProxy.Create to return null? For example, a web service asks the state of a device actor. Device with this Id does not exist actually. Can I return null on the actor create?
Cancel service fabric actor activation on ActivateAsync?
67 views Asked by stefan2410 At
1
No, for two reasons.
ActorProxy.Create
is a proxy that can interact with a (remote) Actor, it is not the Actor itself.To find out which Actors exist, you can interact with the ActorService.
PagedResult<ActorInformation> page = await actorServiceProxy.GetActorsAsync(continuationToken, cancellationToken);