Internal Transaction Producer : MessageQueue : Windows C# Examples


C# Examples » Windows » MessageQueue »

 

Internal Transaction Producer









    
using  System;
using  System.Messaging;

class  MainClass
{
    [STAThread]
    static  void  Main(string[]  args)
    {
        MessageQueue  txq1  =  new  MessageQueue(  @".\Private$\txq1"  );

        for  (  int  i  =1;  i  <=  20;  i++  )
        {
            Message  msgOut  =  new  Message();
            msgOut.Body  =  "Message  "  +  i;
            txq1.Send(  msgOut,  MessageQueueTransactionType.Single  );
        }
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Windows
» MessageQueue