private void SendSector203Comexchange(int datapak, byte command) { var sector203Data = new Sector203Data { Command = command }; _exchangeClient.RequestExWriteSector(datapak, 203, sector203Data); }
private int SendSector203Comexchange(int datapak, byte command) { var sector203Data = new Sector203Data { Command = command }; _exchangeClient.RequestExWriteSector(datapak, 203, sector203Data); return(_iExchangeAdmin.LastMessageID); }
public static void Initialize() { if (!_bInitialized) { _bRunThread = true; _prcoessEvent = new ManualResetEventSlim(true); _waitTime = Convert.ToInt32(ConfigurationManager.AppSettings["WaitTime"].ToString()); iMaxRows = Convert.ToInt32(ConfigurationManager.AppSettings["MaxRows"].ToString()); _exchangeClient = new ExchangeClient(); _exchangeClient.InitialiseExchange(0); m_SectorData = new Sector203Data(); objResponseBusiness = DMResponseBusiness.ResponseBusinessInstance; _processThread = new Thread(ProcessMessages); _processThread.Start(); } }
public static void Initialize() { if (!_bInitialized) { _bRunThread = true; _prcoessEvent = new ManualResetEventSlim(true); _waitTime = Convert.ToInt32(ConfigurationManager.AppSettings["WaitTime"].ToString()); iMaxRows = Convert.ToInt32(ConfigurationManager.AppSettings["MaxRows"].ToString()); _exchangeClient = new ExchangeClient(); _exchangeClient.InitialiseExchange(0); m_SectorData = new Sector203Data(); objResponseBusiness = DMResponseBusiness.ResponseBusinessInstance; _processThread = new Thread(ProcessMessages); _processThread.Start(); } }
public RleaseGameCap() { _exchangeClient = new ExchangeClient(); _exchangeClient.MACEnDisAck += new _IExchangeClientEvents_MACEnDisAckEventHandler(_exchangeClient_MacEnable_DATA_ACK); _exchangeClient.InitialiseExchange(0); if (_requestCollection == null) { _requestCollection = new SortedDictionary <int, EnableMachineThreadData>(); } if (m_SectorData == null) { m_SectorData = new Sector203Data(); } if (oGameCappingBiz == null) { oGameCappingBiz = new GameCappingBiz(); } if (_lstGameCapDetails == null) { _lstGameCapDetails = new List <GameCapDetails>(); } _thRequest = new Thread(new ThreadStart(ProcessRequest)); _thAckResponse = new ThreadDispatcher <EnableMachineThreadDataResponse>(1, "_thAckResponse_EnableMachine"); _thAckResponse.AddProcessThreadData(new ProcessThreadDataHandler <EnableMachineThreadDataResponse>(this.ProcessResponse)); _thAckResponse.Initialize(); _iExchangeAdmin = (IExchangeAdmin)_exchangeClient; ObjectStateNotifier.AddObserver(this); _thRequest.Start(); }
private void SendSector203Comexchange(int datapak, byte command) { var sector203Data = new Sector203Data { Command = command }; _exchangeClient.RequestExWriteSector(datapak, 203, sector203Data); }
public RleaseGameCap() { _exchangeClient = new ExchangeClient(); _exchangeClient.MACEnDisAck += new _IExchangeClientEvents_MACEnDisAckEventHandler(_exchangeClient_MacEnable_DATA_ACK); _exchangeClient.InitialiseExchange(0); if (_requestCollection == null) _requestCollection = new SortedDictionary<int, EnableMachineThreadData>(); if (m_SectorData == null) m_SectorData = new Sector203Data(); if(oGameCappingBiz == null) oGameCappingBiz= new GameCappingBiz(); if (_lstGameCapDetails == null) _lstGameCapDetails = new List<GameCapDetails>(); _thRequest = new Thread(new ThreadStart(ProcessRequest)); _thAckResponse = new ThreadDispatcher<EnableMachineThreadDataResponse>(1, "_thAckResponse_EnableMachine"); _thAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<EnableMachineThreadDataResponse>(this.ProcessResponse)); _thAckResponse.Initialize(); _iExchangeAdmin = (IExchangeAdmin)_exchangeClient; ObjectStateNotifier.AddObserver(this); _thRequest.Start(); }
private int SendSector203Comexchange(int datapak, byte command) { var sector203Data = new Sector203Data { Command = command }; _exchangeClient.RequestExWriteSector(datapak, 203, sector203Data); return _iExchangeAdmin.LastMessageID; }