public EmployeeMasterCard() { _exchangeClient = new ExchangeClient(); _exchangeClient.EMP_DATA_ACK += new _IExchangeClientEvents_EMP_DATA_ACKEventHandler(_exchangeClient_EMP_DATA_ACK); _exchangeClient.InitialiseExchange(0); if (_requestCollection == null) _requestCollection = new SortedDictionary<int, EmployeeMasterCardThreadData>(); if (_emppollingCollection == null) _emppollingCollection = new List<Employeecarddata>(); _thRequest = new Thread(new ThreadStart(ProcessRequest)); _thRequest.Start(); _thAckResponse = new ThreadDispatcher<EmployeeMasterCardThreadDataResponse>(1, "_thAckResponse_EmployeeMasterCard"); _thAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<EmployeeMasterCardThreadDataResponse>(this.ProcessResponse)); _thAckResponse.Initialize(); _iExchangeAdmin = (IExchangeAdmin)_exchangeClient; ObjectStateNotifier.AddObserver(this); }
/// <summary> /// Initializes this instance. /// </summary> public override void Init() { ThreadDispatcher.Initialize(); this.VerifyCommand = this.CoreFactory.CreateContextCommand <VerifyLicenseCommand, IVerifyContext>(this); this.GetKeyCommand = this.CoreFactory.CreateContextCommand <GetKeyFromWebPageCommand, IVerifyContext>(this); this.AbortCommand = this.CoreFactory.CreateContextCommand <LicenseAbortCommand, IVerifyContext>(this); new GetMachineKeyStrategy(this).GetMachineKey(); this.RaisePropertyChanged("MachineKey"); }
public TITO() { _exchangeClientSiteCode = new ExchangeClient(); _exchangeClientSiteCode.OPT_PARAM_ACK += ExchangeClientSiteCodeAck; _exchangeClientSiteCode.InitialiseExchange(0); _exchangeClientTITOEnDis = new ExchangeClient(); _exchangeClientTITOEnDis.TITO_ENDIS_ACK += ExchangeClientTITOAck; _exchangeClientTITOEnDis.InitialiseExchange(0); _exchangeClientTITOEXP = new ExchangeClient(); _exchangeClientTITOEXP.TITO_PARAM_ACK += ExchangeClientVoucherAck; _exchangeClientTITOEXP.InitialiseExchange(0); if (dTITORequest == null) dTITORequest = new SortedDictionary<int, TITOThreadDataRequest>(); if (dTicketExpireRequest == null) dTicketExpireRequest = new SortedDictionary<int, int>(); if (dSiteCodeRequest == null) dSiteCodeRequest = new SortedDictionary<int, int>(); _tmrRequest = new System.Timers.Timer(Int32.Parse(ConfigManager.Read("TITOConfigInterval")) * 1000); _tmrRequest.Elapsed += new ElapsedEventHandler(ProcessRequest); _thAckResponse = new ThreadDispatcher<TITOThreadDataResponse>(1, "_thTITOAckResponse"); _thAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<TITOThreadDataResponse>(this.TITOProcessResponse)); _thAckResponse.Initialize(); _thTicketExpireAckResponse = new ThreadDispatcher<TITOThreadDataResponse>(1, "_thTicketExpireAckResponse"); _thTicketExpireAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<TITOThreadDataResponse>(this.TicketExpireProcessResponse)); _thTicketExpireAckResponse.Initialize(); _thSiteCodeAckResponse = new ThreadDispatcher<TITOThreadDataResponse>(1, "_thSiteCodeAckResponse"); _thSiteCodeAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<TITOThreadDataResponse>(this.SiteCodeProcessResponse)); _thSiteCodeAckResponse.Initialize(); _iExchangeAdminSiteCode = (IExchangeAdmin)_exchangeClientSiteCode; _iExchangeAdminTITOEnDis = (IExchangeAdmin)_exchangeClientTITOEnDis; _iExchangeAdminTITOEXP = (IExchangeAdmin)_exchangeClientTITOEXP; ObjectStateNotifier.AddObserver(this); _tmrRequest.Start(); }
public EnableDisable() { _exchangeClient = new ExchangeClient(); _exchangeClient.MACEnDisAck += ExchangeClientAck; _exchangeClient.InitialiseExchange(0); if (dEnableDisableRequest == null) dEnableDisableRequest = new SortedDictionary<int, EnableDisableThreadData>(); _tmrRequest = new System.Timers.Timer(Int32.Parse(ConfigManager.Read("MachineConfigInterval")) * 1000); _tmrRequest.Elapsed += new ElapsedEventHandler(ProcessRequest); _thAckResponse = new ThreadDispatcher<EnableDisableThreadDataResponse>(1, "_thAckResponse"); _thAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<EnableDisableThreadDataResponse>(this.ProcessResponse)); _thAckResponse.Initialize(); _iExchangeAdmin = (IExchangeAdmin)_exchangeClient; ObjectStateNotifier.AddObserver(this); _tmrRequest.Start(); }
public EmployeeMasterCard() { _exchangeClient = new ExchangeClient(); _exchangeClient.EMP_DATA_ACK += new _IExchangeClientEvents_EMP_DATA_ACKEventHandler(_exchangeClient_EMP_DATA_ACK); _exchangeClient.InitialiseExchange(0); if (_requestCollection == null) _requestCollection = new SortedDictionary<int, EmployeeMasterCardThreadData>(); _tmrRequest = new System.Timers.Timer(Int32.Parse(ConfigManager.Read("EmployeecardTimeInterval")) * 1000); _tmrRequest.Elapsed += new ElapsedEventHandler(ProcessRequest); _thAckResponse = new ThreadDispatcher<EmployeeMasterCardThreadDataResponse>(1, "_thAckResponse_EmployeeMasterCard"); _thAckResponse.AddProcessThreadData(new ProcessThreadDataHandler<EmployeeMasterCardThreadDataResponse>(this.ProcessResponse)); _thAckResponse.Initialize(); _iExchangeAdmin = (IExchangeAdmin)_exchangeClient; ObjectStateNotifier.AddObserver(this); _tmrRequest.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(); }
/// <summary> /// Initializes this instance. /// </summary> public override void Init() { ThreadDispatcher.Initialize(); this.InfoCommand = this.CoreFactory.CreateContextCommand <InfoCommand, IInfoContext>(this); this.InstagramWindowCommand = this.CoreFactory.CreateContextCommand <InstagramWindowCommand, IInstagramContext>(this); }