Exemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of <c>MSMQBus&lt;TMessage&gt;</c> class.
 /// </summary>
 /// <param name="options">The instance of <see cref="Apworks.Bus.MSMQ.MSMQBusOptions"/> class
 /// which contains the option information to initialize the message queue.</param>
 public MSMQBus(MSMQBusOptions options)
     : this()
 {
     this.options      = options;
     this.messageQueue = new MessageQueue(options.Path,
                                          options.SharedModeDenyReceive,
                                          options.EnableCache, options.QueueAccessMode);
     this.messageQueue.Formatter = options.MessageFormatter;
     this.useInternalTransaction = options.UseInternalTransaction && messageQueue.Transactional;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of <c>MSMQBus&lt;TMessage&gt;</c> class.
 /// </summary>
 /// <param name="path">The location of the queue.</param>
 /// <param name="useInternalTransaction">A <see cref="System.Boolean"/> value which indicates
 /// whether the internal transaction should be used to manipulate the message queue.</param>
 public MSMQBus(string path, bool useInternalTransaction)
     : this()
 {
     this.options      = new MSMQBusOptions(path, useInternalTransaction);
     this.messageQueue = new MessageQueue(path,
                                          options.SharedModeDenyReceive,
                                          options.EnableCache, options.QueueAccessMode);
     this.messageQueue.Formatter = options.MessageFormatter;
     this.useInternalTransaction = options.UseInternalTransaction && messageQueue.Transactional;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of <c>MSMQEventBus</c> class.
 /// </summary>
 /// <param name="options">The instance of <see cref="Apworks.Bus.MSMQ.MSMQBusOptions"/> class
 /// which contains the option information to initialize the message queue.</param>
 public MSMQEventBus(MSMQBusOptions options) : base(options)
 {
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of <c>MSMQCommandBus</c> class.
 /// </summary>
 /// <param name="options">The instance of <see cref="Apworks.Bus.MSMQ.MSMQBusOptions"/> class
 /// which contains the option information to initialize the message queue.</param>
 public MSMQCommandBus(MSMQBusOptions options) : base(options)
 {
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of <c>MSMQEventBus</c> class.
 /// </summary>
 /// <param name="options">The instance of <see cref="Apworks.Bus.MSMQ.MSMQBusOptions"/> class
 /// which contains the option information to initialize the message queue.</param>
 public MSMQEventBus(MSMQBusOptions options) : base(options) { }
Exemplo n.º 6
0
 /// <summary>
 /// Initializes a new instance of <c>MSMQCommandBus</c> class.
 /// </summary>
 /// <param name="options">The instance of <see cref="Apworks.Bus.MSMQ.MSMQBusOptions"/> class
 /// which contains the option information to initialize the message queue.</param>
 public MSMQCommandBus(MSMQBusOptions options) : base(options) { }