Inheritance: IAmAPerformer
コード例 #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;
 }
コード例 #2
0
 /// <summary>
 /// Opens this instance.
 /// </summary>
 public void Open()
 {
     State = ConsumerState.Open;
     Job   = Performer.Run();
     JobId = Job.Id;
 }
コード例 #3
0
ファイル: Consumer.cs プロジェクト: GuyHarwood/Paramore
 public Consumer(ConnectionName name, IAmAnInputChannel channel, IAmAMessagePump messagePump)
 {
     Name = name;
     Performer = new Performer(channel, messagePump);
     State = ConsumerState.Shut;
 }