Mercurial > silverbladetech
diff Messaging/Server/Listeners/MsmqListener.cs @ 31:7d9de5746f18
Working version
author | adminsh@apollo |
---|---|
date | Thu, 22 Mar 2012 08:09:41 +0000 |
parents | 9919ee227c93 |
children |
line wrap: on
line diff
--- a/Messaging/Server/Listeners/MsmqListener.cs Wed Mar 21 22:26:48 2012 +0000 +++ b/Messaging/Server/Listeners/MsmqListener.cs Thu Mar 22 08:09:41 2012 +0000 @@ -2,7 +2,6 @@ using System.Messaging; using Common.Messages; using GalaSoft.MvvmLight.Messaging; -using Server.Interfaces; namespace Server.Listeners { @@ -25,7 +24,7 @@ { if (IsListening) return; - Messenger.Default.Send(new MsmqLogMessage() { Body = "Opening listener..." }); + Messenger.Default.Send(new MsmqLogMessage() { Body = "Opening listener" }); IsListening = true; while (IsListening) { @@ -48,10 +47,9 @@ public void Stop() { if (!IsListening) return; - Messenger.Default.Send(new MsmqLogMessage() { Body = "Closing listener..." }); _mq.Close(); IsListening = false; - Messenger.Default.Send(new MsmqLogMessage() { Body = "Closed." }); + Messenger.Default.Send(new MsmqLogMessage() { Body = "Listener closed." }); } } }