Esempio n. 1
0
 public static void Start(ConfigManager configManager)
 {
     fServerInstance = new ActorServer
     {
         fConfigManager = configManager ?? throw new ActorException("ConfigManager can't be null"),
                                Name             = configManager.Host().Host,
                                Port             = configManager.Host().Port,
                                ListenerService  = configManager.GetListenerService(),
                                SerializeService = configManager.GetSerializeService(),
                                HostService      = configManager.GetHostService()
     };
     ActorTagHelper.FullHost = configManager.Host().Host;
     fServerInstance.DoInit(new HostRelayActor(fServerInstance.ListenerService));
 }
Esempio n. 2
0
        public static void Start(ActorConfigManager configManager)
        {
            CheckArg.ActorConfigManager(configManager);
            ActorTagHelper.FullHost = configManager.Host().Host;

            _serverInstance = new ActorServer
            {
                _configManager = configManager ?? throw new ActorException(MessageNullConfigManager),
                                       Name = configManager.Host().Host,
                                       Port = configManager.Host().Port
            };

            _serverInstance.ListenerService      = configManager.GetListenerService();
            _serverInstance.SerializeService     = configManager.GetSerializeService();
            _serverInstance.HostService          = configManager.GetHostService();
            _serverInstance.ServerCommandService = ActorConfigManager.GetServerCommandService();
            _serverInstance.DoInit(new HostRelayActor(_serverInstance.ListenerService));
        }
Esempio n. 3
0
 public static void Start(string lName, int lPort, HostRelayActor hostRelayActor)
 {
     fServerInstance = new ActorServer(lName, lPort);
     fServerInstance.DoInit(hostRelayActor);
 }