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

The rabbit channel.
Inheritance: IChannel
Afficher le fichier Open project: SDVentures/Contour Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
SafeNativeInvoke ( Action invokeAction ) : void

The safe native invoke.

Method Details

Accept() public méthode

The accept.
public Accept ( RabbitDelivery delivery ) : void
delivery RabbitDelivery /// The delivery. ///
Résultat void

Bind() public méthode

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. ///
Résultat void

BuildCancellableConsumer() public méthode

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

BuildQueueingConsumer() public méthode

The build queueing consumer.
public BuildQueueingConsumer ( ) : QueueingBasicConsumer
Résultat QueueingBasicConsumer

Declare() public méthode

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

Declare() public méthode

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

DeclareDefaultQueue() public méthode

The declare default queue.
public DeclareDefaultQueue ( ) : string
Résultat string

Dispose() public méthode

The dispose.
public Dispose ( ) : void
Résultat void

EnablePublishConfirmation() public méthode

Enable publish confirmation.
public EnablePublishConfirmation ( ) : void
Résultat void

GetNextSeqNo() public méthode

Get next seq no.
public GetNextSeqNo ( ) : ulong
Résultat ulong

OnConfirmation() public méthode

The on confirmation.
public OnConfirmation ( ConfirmationHandler handleConfirmation ) : void
handleConfirmation ConfirmationHandler /// The handle confirmation. ///
Résultat void

Publish() public méthode

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. ///
Résultat void

RabbitChannel() public méthode

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

Reject() public méthode

The reject.
public Reject ( RabbitDelivery delivery, bool requeue ) : void
delivery RabbitDelivery /// The delivery. ///
requeue bool /// The requeue. ///
Résultat void

Reply() public méthode

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. ///
Résultat void

RequestPublish() public méthode

The request publish.
public RequestPublish ( QoSParams qos ) : void
qos QoSParams /// The qos. ///
Résultat void

SetQos() public méthode

The set qos.
public SetQos ( QoSParams qos ) : void
qos QoSParams /// The qos. ///
Résultat void

StartConsuming() public méthode

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. ///
Résultat string

StopConsuming() public méthode

The stop consuming.
public StopConsuming ( string consumerTag ) : void
consumerTag string /// The consumer tag. ///
Résultat void

TryStopConsuming() public méthode

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

UnpackAs() public méthode

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