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