Beispiel #1
0
		public void Release()
		{
			try
			{
				if (null != _cSMSRoll)
				{
					_cSMSRoll.Stop();
					_cSMSRoll = null;
				}
			}
			catch (Exception ex)   // замена пустого кетча
			{
				(new Logger()).WriteError(ex);
			}
			bReleased = true;
			(new Logger()).WriteDebug4("return [bReleased = true]");
		}
Beispiel #2
0
		public void Init()
		{
			(new Logger()).WriteDebug3("in");
			_cMat = new Mat(_cPreferences.cMat) { OnStop = MatStopped };
			_cSMSRoll = new SMSRoll(_cPreferences.cRoll) { OnRollStandby = _cMat.Standby, OnRollShow = _cMat.Start };
			_cInfoCrawl = new Crawl(_cPreferences.cCrawl, _cPreferences.eBroadcastType);
			bReleased = false;
			_mreChatOnAir = new ManualResetEvent(true);
			_mreInfoOnAir = new ManualResetEvent(true);
			_mreChatSetuping = new ManualResetEvent(true);
			_cSMSRoll.Init();
			QueueLength = 0;
			_cInfoCrawl.Init();
			_cMat.Init();

			(new Logger()).WriteDebug4("return");
		}