# HG changeset patch
# User adminsh@apollo
# Date 1332367758 0
# Node ID 9919ee227c931145027948eab41b047665973642
# Parent 4c0dea4760c577dc343493d7de140232cdffb269
msmq added
diff -r 4c0dea4760c5 -r 9919ee227c93 .hgignore
--- a/.hgignore Wed Mar 21 20:29:04 2012 +0000
+++ b/.hgignore Wed Mar 21 22:09:18 2012 +0000
@@ -5,3 +5,4 @@
*.csproj.user
*/obj/*
*/_ReSharper*
+Stocks/packages/*
diff -r 4c0dea4760c5 -r 9919ee227c93 Messaging/Client/Client.csproj
--- a/Messaging/Client/Client.csproj Wed Mar 21 20:29:04 2012 +0000
+++ b/Messaging/Client/Client.csproj Wed Mar 21 22:09:18 2012 +0000
@@ -45,6 +45,7 @@
..\Libs\RabbitMq.2.6.1.0\RabbitMQ.Client.dll
+
diff -r 4c0dea4760c5 -r 9919ee227c93 Messaging/Client/MainWindow.xaml
--- a/Messaging/Client/MainWindow.xaml Wed Mar 21 20:29:04 2012 +0000
+++ b/Messaging/Client/MainWindow.xaml Wed Mar 21 22:09:18 2012 +0000
@@ -6,6 +6,7 @@
Height="350">
+
+
..\Libs\Elysium.Theme.1.3\System.Windows.Interactivity.dll
@@ -80,14 +81,12 @@
Designer
-
-
-
+
-
+
MSBuild:Compile
Designer
diff -r 4c0dea4760c5 -r 9919ee227c93 Messaging/Server/UI/MainWindow.xaml
--- a/Messaging/Server/UI/MainWindow.xaml Wed Mar 21 20:29:04 2012 +0000
+++ b/Messaging/Server/UI/MainWindow.xaml Wed Mar 21 22:09:18 2012 +0000
@@ -32,9 +32,9 @@
@@ -57,13 +57,13 @@
+ ToolTip="{Binding MsmqEndPoint.ToolTip}" />
+ Xaml:XamlHelper.AutoScroll="{Binding MsmqEndPoint.IsLogChanged}">
MsmqEndPoint { get; set; }
+ public MessageEndPoint SocketEndPoint { get; set; }
+ public MessageEndPoint RabbitEndPoint { get; set; }
+ public MessageEndPoint RabbitProtoEndPoint { get; set; }
#region Constructor
public MainWindowViewModel()
{
- InitSocketEndPoint(Settings.SocketsPortNumber);
- InitRabbitEndPoint(Settings.RabbitPortNumber, Settings.QueueName);
+ InitMsmqEndPoint(Settings.MsmqQueueName);
+ //InitSocketEndPoint(Settings.SocketsPortNumber);
+ InitRabbitEndPoint(Settings.RabbitPortNumber, Settings.RabbitQueueName);
InitRabbitProtoEndPoint(Settings.RabbitProtoPortNumber);
CloseCommand = new RelayCommand(CloseCommandExecute);
@@ -53,10 +56,20 @@
#endregion
+ private void InitMsmqEndPoint(string queueName)
+ {
+ IListener listener = new MsmqListener(queueName);
+ MsmqEndPoint = new MessageEndPoint(listener)
+ {
+ DisplayText = "Microsoft Message Queue",
+ ToolTip = string.Format("Listening on msmq queue ({0})", queueName)
+ };
+ }
+
private void InitSocketEndPoint(int port)
{
IListener listener = new AsyncSocketListener(port);
- SocketEndPoint = new SocketEndPoint(listener)
+ SocketEndPoint = new MessageEndPoint(listener)
{
DisplayText = "Async Sockets",
ToolTip = "Listening over TCP/IP on socket localhost:" + port
@@ -66,7 +79,7 @@
private void InitRabbitEndPoint(int port, string queueName)
{
IListener listener = new RabbitQueueListener(port, queueName);
- RabbitEndPoint = new RabbitEndPoint(listener)
+ RabbitEndPoint = new MessageEndPoint(listener)
{
DisplayText = "RabbitMQ",
ToolTip = "Listening..." + port
@@ -76,12 +89,13 @@
private void InitRabbitProtoEndPoint(int port)
{
IListener listener = null;
- RabbitProtoEndPoint = new RabbitProtoEndPoint(listener)
+ RabbitProtoEndPoint = new MessageEndPoint(listener)
{
DisplayText = "RabbitMQ with Protobuf-net",
ToolTip = "Listening...." + port
};
}
+
private void CloseCommandExecute()
{
Log.Write("Closing command executed");