Example #1
0
 public Connection(ConnectionName name, IAmAnInputChannel channel, Type dataType, int noOfPerformers, int timeoutInMilliseconds)
 {
     Name = name;
     Channel = channel;
     DataType = dataType;
     NoOfPeformers = noOfPerformers;
     TimeoutInMiliseconds = timeoutInMilliseconds;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Connection"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="channel">The channel.</param>
 /// <param name="dataType">Type of the data.</param>
 /// <param name="noOfPerformers">The no of performers.</param>
 /// <param name="timeoutInMilliseconds">The timeout in milliseconds.</param>
 public Connection(ConnectionName name, IAmAnInputChannel channel, Type dataType, int noOfPerformers, int timeoutInMilliseconds)
 {
     Name                 = name;
     Channel              = channel;
     DataType             = dataType;
     NoOfPeformers        = noOfPerformers;
     TimeoutInMiliseconds = timeoutInMilliseconds;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Connection"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="channel">The channel.</param>
 /// <param name="dataType">Type of the data.</param>
 /// <param name="noOfPerformers">The no of performers.</param>
 /// <param name="timeoutInMilliseconds">The timeout in milliseconds.</param>
 /// <param name="requeueCount">The number of times you want to requeue a message before dropping it</param>
 public Connection(ConnectionName name, IAmAnInputChannel channel, Type dataType, int noOfPerformers = 1, int timeoutInMilliseconds = 300, int requeueCount = -1)
 {
     RequeueCount         = requeueCount;
     Name                 = name;
     Channel              = channel;
     DataType             = dataType;
     NoOfPeformers        = noOfPerformers;
     TimeoutInMiliseconds = timeoutInMilliseconds;
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Consumer"/> class.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="channel">The channel.</param>
 /// <param name="messagePump">The message pump.</param>
 public Consumer(ConnectionName name, IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     Name      = name;
     Performer = new Performer(channel, messagePump);
     State     = ConsumerState.Shut;
 }
Example #5
0
 public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     this.channel     = channel;
     this.messagePump = messagePump;
 }
Example #6
0
 public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     _channel     = channel;
     _messagePump = messagePump;
 }
Example #7
0
 public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     this.channel = channel;
     this.messagePump = messagePump;
 }
Example #8
0
 public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     _channel = channel;
     _messagePump = messagePump;
 }
Example #9
0
 public Consumer(ConnectionName name, IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     Name = name;
     Performer = new Performer(channel, messagePump);
     State = ConsumerState.Shut;
 }