public void Initialize(object objParam) { Log.Debug("init lineprovider"); eFileSyncResult fsr = LineSr.SyncRoutines(eUpdateType.Initialize, "Adding bet types from configuration", DalStationSettings.Instance.UseDatabaseForLine, null, delegate(object obj) { BetDomainMap.EnsureInstance(); return(false); }); ExcpHelper.ThrowIf(fsr == eFileSyncResult.Failed, "Cannot initialize Bet Types"); string sStationNumber = objParam as string; Debug.Assert(!string.IsNullOrEmpty(sStationNumber)); LiveBetClient.Initialize(sStationNumber); VirtualLiveBetClient.Initialize(sStationNumber); PreMatchClient.Initialize(sStationNumber); StatisticsClient.Initialize(sStationNumber); MetainfoClient.Initialize(sStationNumber); //TournamentFlagsClient.Initialize(objParam.ToString()); #if ADD_OUTRIGHT_XML ImportOutrightExample(); ImportOutrightExample(); #endif }
public void Run(eLineType elt) { Log.Debug("run line clients"); if (((int)elt & (int)eLineType.PreMatches) > 0) { PreMatchClient.Run(); StatisticsClient.Run(); MetainfoClient.Run(); //TournamentFlagsClient.Run(); } if (((int)elt & (int)eLineType.LiveMatches) > 0) { LiveBetClient.Run(); VirtualLiveBetClient.Run(); } LineCleaner.Run(); }