PoEWhisperNotifier.LogMonitor.RunReadLoop C# (CSharp) Method

RunReadLoop() private method

private RunReadLoop ( ) : void
return void
		private void RunReadLoop() {
			var Reader = new StreamReader(_LogStream);
			while(IsMonitoring) {
				if(_LogStream.Length == _LogStream.Position) {
					Thread.Sleep(250);
					continue;
				}
				string Line = Reader.ReadLine();
				MessageData Data;
				Action<MessageData> Ev = null;
				if(TryParseChat(Line, out Data) || TryParseDisconnect(Line, out Data)) {
					Ev = MessageReceived;
					if (Ev != null)
						Ev(Data);
				}
			}
		}