Наследование: Behaviors, IServerCommandService
Пример #1
0
        public static IServerCommandService GetServerCommandService()
        {
            ServerCommandService serverCommandService = new ServerCommandService();

            serverCommandService.RegisterCommand(new DiscoServerCommand());
            serverCommandService.RegisterCommand(new StatServerCommand());
            return(serverCommandService);
        }
Пример #2
0
        private void DoInit(HostRelayActor hostRelayActor)
        {
            DirectoryActor.GetDirectory(); // Start directory
            ActorConsole.Register();       // Start console
            // should work now
            SendByName.Send("Actor Server Start", "Console");
            if (ServerCommandService == null)
            {
                ServerCommandService = new ServerCommandService();
                ServerCommandService.RegisterCommand(new DiscoServerCommand());
                ServerCommandService.RegisterCommand(new StatServerCommand());
            }
            Become(ServerCommandService);
            if (hostRelayActor == null)
            {
                return;
            }

            ListenerService = _configManager.GetListenerService();
            ShardDirectoryActor.AttachShardDirectoryActor(this);
            _actHostRelay = hostRelayActor;
            _actHostRelay.SendMessage(HostRelayActor.ListenOrder);
        }