Exemplo n.º 1
0
        static void Main(string[] args)
        {
            var listener = new MSMQListener(@".\Private$\FundooNotesQueue");

            listener.MessageReceived += new MessageReceivedEventHandler(listener_MessageReceived);
            listener.Start();
            Console.WriteLine("Listening...");
            Console.ReadLine();
            listener.Stop();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Main Method.
        /// </summary>
        public static void Main()
        {
            MSMQListener listener = new MSMQListener(@".\Private$\messageq");

            listener.MessageReceived += new MessageReceivedEventHandler(listnerMessageReceived);
            listener.Start();
            Console.WriteLine("Read Message");
            Console.ReadLine();
            listener.Stop();
        }