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); }
public CASTSConnectorSingle(IDealingServerForASTSConnector dealingServer) : base(dealingServer) { IsConnectedToServer = false; CreateStates(); _state = StateDisconnected; _queueTransactions = new CMutualQueue <Action>(); _parRequestPeriod = _confASTSConnector.RequestPeriod; CUtil.ThreadStart(Process); }
/* * public void ProcessDisconnect() * { * _astsConnectionMain.Disconnect(); * } */ public void SetState(CBaseStateConnector stateNew) { _state = stateNew; }