예제 #1
0
        private void CreateStates()
        {
            _loggerStates = new CLogger("Connector_States", flushMode: true);

            StateDisconnected = new CStateConnector_Disconnected(this);
            StateConnected    = new CStateConnector_Connected(this);
            StateOff          = new CStateConnector_Off(this);
        }
예제 #2
0
        public CASTSConnectorSingle(IDealingServerForASTSConnector dealingServer)

            : base(dealingServer)
        {
            IsConnectedToServer = false;
            CreateStates();
            _state = StateDisconnected;

            _queueTransactions = new CMutualQueue <Action>();

            _parRequestPeriod = _confASTSConnector.RequestPeriod;

            CUtil.ThreadStart(Process);
        }
예제 #3
0
        /*
         * public void ProcessDisconnect()
         * {
         *  _astsConnectionMain.Disconnect();
         * }
         */

        public void SetState(CBaseStateConnector stateNew)
        {
            _state = stateNew;
        }