/// <summary>
        /// Initialize this component with its config
        /// </summary>
        /// <param name="config">Config of this module plugin</param>
        public void Initialize(BinaryConnectionConfig config)
        {
            _config = (TcpListenerConfig)config;

            if (IPAddress.TryParse(_config.IpAdress, out var address))
            {
                Address = address;
            }
            else
            {
                Address = IPAddress.Any; // Use previous behavior as fallback
            }
            StateMachine.Initialize(this).With <ServerStateBase>();
        }
Beispiel #2
0
        /// <summary>
        /// Initialize this component with its config
        /// </summary>
        /// <param name="config">Config of this module plugin</param>
        public void Initialize(BinaryConnectionConfig config)
        {
            _config = (TcpListenerConfig)config;

            StateMachine.Initialize(this).With <ServerStateBase>();
        }