public static void Create()
 {
     ActorSystem = Akka.Actor.ActorSystem.Create("TrangselskattActorSystem");
     ActorReferences.FordonApiController =
         ActorSystem.ActorSelection("akka.tcp://[email protected]:8091/user/VehicleCoordinator")
         .ResolveOne(TimeSpan.FromSeconds(10))
         .Result;
 }
Exemple #2
0
 private IActorRef FindActorUsingActorSystem(string fullPath)
 {
     try
     {
         var actorSelection = _actorSystem.ActorSelection(fullPath);
         var actorFindTask  = Task.Run(() => actorSelection.ResolveOne(_timeOut));
         return(actorFindTask.Result);
     }
     catch (Exception e)
     {
         throw new ActorNotFoundException(fullPath, e);
     }
 }