protected override async Task OnActivateAsync() { await base.OnActivateAsync(); _zioPaperone = ActorProxy.Create <IZioPaperone>(ZioPaperoneActorId, $"{ActorService.Context.CodePackageActivationContext.ApplicationName}"); _bandaBassotti = ActorProxy.Create <IBandaBassotti>(BandaBassottiActorId, $"{ActorService.Context.CodePackageActivationContext.ApplicationName}"); }
public ActorsStateService(StatelessServiceContext statelessServiceContext) { _statelessServiceContext = statelessServiceContext; string applicationName = _statelessServiceContext.CodePackageActivationContext.ApplicationName; _zioPaperone = ActorProxy.Create <IZioPaperone>(new ActorId("ZioPaperone"), applicationName); _bandaBassotti = ActorProxy.Create <IBandaBassotti>(new ActorId("BandaBassotti"), applicationName); _qui = ActorProxy.Create <IQui>(new ActorId("Qui"), applicationName); _quo = ActorProxy.Create <IQuo>(new ActorId("Quo"), applicationName); _qua = ActorProxy.Create <IQua>(new ActorId("Qua"), applicationName); }