Ejemplo n.º 1
0
        public static void StartActorSystem(bool createRootActor = false)
        {
            ActorSystemName = Constants.ActorSystemName;

            // Create an ActionSystem
            ColoredConsole.WriteTitle($"Creating '{ActorSystemName}' ActorSystem...");

            // Create an Akka ActorSystem
            ActorSystemHelper.CreateActorSystem(ActorSystemName);

            if (createRootActor == true)
            {
                // Create first 'user' actor 'MoviePlaybackActor' in Akka ActorSystem
                _moviePlaybackActorRef = ActorSystemHelper.CreateActor(MoviePlaybackActor.Props(), ActorPaths.MoviePlaybackActor.Name);
            }
        }