Inheritance: IAmAPerformer
Beispiel #1
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;
 }
Beispiel #2
0
 /// <summary>
 /// Opens this instance.
 /// </summary>
 public void Open()
 {
     State = ConsumerState.Open;
     Job   = Performer.Run();
     JobId = Job.Id;
 }
Beispiel #3
0
 public Consumer(ConnectionName name, IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     Name = name;
     Performer = new Performer(channel, messagePump);
     State = ConsumerState.Shut;
 }