C# Class Contour.Transport.RabbitMQ.Internal.RabbitChannel

The rabbit channel.
Inheritance: IChannel
Show file Open project: SDVentures/Contour Class Usage Examples

Public Methods

Method Description
Accept ( RabbitDelivery delivery ) : void

The accept.

Bind ( Queue queue, Contour.Transport.RabbitMQ.Topology.Exchange exchange, string routingKey ) : void

The bind.

BuildCancellableConsumer ( CancellationToken cancellationToken ) : Contour.Transport.RabbitMQ.Internal.CancellableQueueingConsumer

The build cancellable consumer.

BuildQueueingConsumer ( ) : QueueingBasicConsumer

The build queueing consumer.

Declare ( Contour.Transport.RabbitMQ.Topology.Exchange exchange ) : void

The declare.

Declare ( Queue queue ) : void

The declare.

DeclareDefaultQueue ( ) : string

The declare default queue.

Dispose ( ) : void

The dispose.

EnablePublishConfirmation ( ) : void

Enable publish confirmation.

GetNextSeqNo ( ) : ulong

Get next seq no.

OnConfirmation ( ConfirmationHandler handleConfirmation ) : void

The on confirmation.

Publish ( IRoute route, IMessage message, Action propsVisitor = null ) : void

The publish.

RabbitChannel ( RabbitBus bus, IModel native ) : System

Инициализирует новый экземпляр класса RabbitChannel.

Reject ( RabbitDelivery delivery, bool requeue ) : void

The reject.

Reply ( IMessage message, RabbitRoute replyTo, string correlationId ) : void

The reply.

RequestPublish ( QoSParams qos ) : void

The request publish.

SetQos ( QoSParams qos ) : void

The set qos.

StartConsuming ( IListeningSource listeningSource, bool requireAccept, IBasicConsumer consumer ) : string

The start consuming.

StopConsuming ( string consumerTag ) : void

The stop consuming.

TryStopConsuming ( string consumerTag ) : bool

The try stop consuming.

UnpackAs ( Type type, RabbitDelivery delivery ) : IMessage

The unpack as.

Private Methods

Method Description
SafeNativeInvoke ( Action invokeAction ) : void

The safe native invoke.

Method Details

Accept() public method

The accept.
public Accept ( RabbitDelivery delivery ) : void
delivery RabbitDelivery /// The delivery. ///
return void

Bind() public method

The bind.
public Bind ( Queue queue, Contour.Transport.RabbitMQ.Topology.Exchange exchange, string routingKey ) : void
queue Contour.Transport.RabbitMQ.Topology.Queue /// The queue. ///
exchange Contour.Transport.RabbitMQ.Topology.Exchange /// The exchange. ///
routingKey string /// The routing key. ///
return void

BuildCancellableConsumer() public method

The build cancellable consumer.
public BuildCancellableConsumer ( CancellationToken cancellationToken ) : Contour.Transport.RabbitMQ.Internal.CancellableQueueingConsumer
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
return Contour.Transport.RabbitMQ.Internal.CancellableQueueingConsumer

BuildQueueingConsumer() public method

The build queueing consumer.
public BuildQueueingConsumer ( ) : QueueingBasicConsumer
return QueueingBasicConsumer

Declare() public method

The declare.
public Declare ( Contour.Transport.RabbitMQ.Topology.Exchange exchange ) : void
exchange Contour.Transport.RabbitMQ.Topology.Exchange /// The exchange. ///
return void

Declare() public method

The declare.
public Declare ( Queue queue ) : void
queue Contour.Transport.RabbitMQ.Topology.Queue /// The queue. ///
return void

DeclareDefaultQueue() public method

The declare default queue.
public DeclareDefaultQueue ( ) : string
return string

Dispose() public method

The dispose.
public Dispose ( ) : void
return void

EnablePublishConfirmation() public method

Enable publish confirmation.
public EnablePublishConfirmation ( ) : void
return void

GetNextSeqNo() public method

Get next seq no.
public GetNextSeqNo ( ) : ulong
return ulong

OnConfirmation() public method

The on confirmation.
public OnConfirmation ( ConfirmationHandler handleConfirmation ) : void
handleConfirmation ConfirmationHandler /// The handle confirmation. ///
return void

Publish() public method

The publish.
public Publish ( IRoute route, IMessage message, Action propsVisitor = null ) : void
route IRoute /// The route. ///
message IMessage /// The message. ///
propsVisitor Action /// The props visitor. ///
return void

RabbitChannel() public method

Инициализирует новый экземпляр класса RabbitChannel.
public RabbitChannel ( RabbitBus bus, IModel native ) : System
bus RabbitBus /// The bus. ///
native IModel /// The native. ///
return System

Reject() public method

The reject.
public Reject ( RabbitDelivery delivery, bool requeue ) : void
delivery RabbitDelivery /// The delivery. ///
requeue bool /// The requeue. ///
return void

Reply() public method

The reply.
public Reply ( IMessage message, RabbitRoute replyTo, string correlationId ) : void
message IMessage /// The message. ///
replyTo RabbitRoute /// The reply to. ///
correlationId string /// The correlation id. ///
return void

RequestPublish() public method

The request publish.
public RequestPublish ( QoSParams qos ) : void
qos QoSParams /// The qos. ///
return void

SetQos() public method

The set qos.
public SetQos ( QoSParams qos ) : void
qos QoSParams /// The qos. ///
return void

StartConsuming() public method

The start consuming.
public StartConsuming ( IListeningSource listeningSource, bool requireAccept, IBasicConsumer consumer ) : string
listeningSource IListeningSource /// The listening source. ///
requireAccept bool /// The require accept. ///
consumer IBasicConsumer /// The consumer. ///
return string

StopConsuming() public method

The stop consuming.
public StopConsuming ( string consumerTag ) : void
consumerTag string /// The consumer tag. ///
return void

TryStopConsuming() public method

The try stop consuming.
public TryStopConsuming ( string consumerTag ) : bool
consumerTag string /// The consumer tag. ///
return bool

UnpackAs() public method

The unpack as.
public UnpackAs ( Type type, RabbitDelivery delivery ) : IMessage
type System.Type /// The type. ///
delivery RabbitDelivery /// The delivery. ///
return IMessage