public Connection(ConnectionName name, IAmAnInputChannel channel, Type dataType, int noOfPerformers, int timeoutInMilliseconds) { Name = name; Channel = channel; DataType = dataType; NoOfPeformers = noOfPerformers; TimeoutInMiliseconds = timeoutInMilliseconds; }
/// <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; }
/// <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; }
/// <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; }
public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump) { this.channel = channel; this.messagePump = messagePump; }
public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump) { _channel = channel; _messagePump = messagePump; }
public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump) { this.channel = channel; this.messagePump = messagePump; }
public Performer(IAmAnInputChannel channel, IAmAMessagePump messagePump) { _channel = channel; _messagePump = messagePump; }
public Consumer(ConnectionName name, IAmAnInputChannel channel, IAmAMessagePump messagePump) { Name = name; Performer = new Performer(channel, messagePump); State = ConsumerState.Shut; }