Example #1
0
 static void Main(string[] args)
 {
     IMSMQService client = new MSMQServiceClient();
     client.ShowMessage("Sent message");
     Console.WriteLine("Message was sent on {0}", DateTime.Now.ToString(CultureInfo.InvariantCulture));
     Console.ReadKey();
 }
Example #2
0
        static void Main(string[] args)
        {
            MSMQServiceClient proxy = new MSMQServiceClient();

            for (int i = 0; i < 100; i++)
            {
                proxy.GetData("hello" + i);
                Console.WriteLine(i + " Message sent.");
            }


            Console.ReadLine();
        }
 public MainWindow()
 {
     InitializeComponent();
     client = new MSMQServiceClient();
 }