Example #1
0
 /// <summary>
 /// Opens the task queue and begin receiving messages.
 /// </summary>
 public void Open()
 {
     State = ConsumerState.Open;
     Job   = Performer.Run();
     JobId = Job.Id;
 }
Example #2
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, IAmAChannel channel, IAmAMessagePump messagePump)
 {
     Name      = name;
     Performer = new Performer(channel, messagePump);
     State     = ConsumerState.Shut;
 }