C# Класс Contour.Transport.RabbitMQ.Internal.RabbitChannel

The rabbit channel.
Наследование: IChannel
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
SafeNativeInvoke ( Action invokeAction ) : void

The safe native invoke.

Описание методов

Accept() публичный Метод

The accept.
public Accept ( RabbitDelivery delivery ) : void
delivery RabbitDelivery /// The delivery. ///
Результат void

Bind() публичный Метод

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. ///
Результат void

BuildCancellableConsumer() публичный Метод

The build cancellable consumer.
public BuildCancellableConsumer ( CancellationToken cancellationToken ) : Contour.Transport.RabbitMQ.Internal.CancellableQueueingConsumer
cancellationToken System.Threading.CancellationToken /// The cancellation token. ///
Результат Contour.Transport.RabbitMQ.Internal.CancellableQueueingConsumer

BuildQueueingConsumer() публичный Метод

The build queueing consumer.
public BuildQueueingConsumer ( ) : QueueingBasicConsumer
Результат QueueingBasicConsumer

Declare() публичный Метод

The declare.
public Declare ( Contour.Transport.RabbitMQ.Topology.Exchange exchange ) : void
exchange Contour.Transport.RabbitMQ.Topology.Exchange /// The exchange. ///
Результат void

Declare() публичный Метод

The declare.
public Declare ( Queue queue ) : void
queue Contour.Transport.RabbitMQ.Topology.Queue /// The queue. ///
Результат void

DeclareDefaultQueue() публичный Метод

The declare default queue.
public DeclareDefaultQueue ( ) : string
Результат string

Dispose() публичный Метод

The dispose.
public Dispose ( ) : void
Результат void

EnablePublishConfirmation() публичный Метод

Enable publish confirmation.
public EnablePublishConfirmation ( ) : void
Результат void

GetNextSeqNo() публичный Метод

Get next seq no.
public GetNextSeqNo ( ) : ulong
Результат ulong

OnConfirmation() публичный Метод

The on confirmation.
public OnConfirmation ( ConfirmationHandler handleConfirmation ) : void
handleConfirmation ConfirmationHandler /// The handle confirmation. ///
Результат void

Publish() публичный Метод

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. ///
Результат void

RabbitChannel() публичный Метод

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

Reject() публичный Метод

The reject.
public Reject ( RabbitDelivery delivery, bool requeue ) : void
delivery RabbitDelivery /// The delivery. ///
requeue bool /// The requeue. ///
Результат void

Reply() публичный Метод

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. ///
Результат void

RequestPublish() публичный Метод

The request publish.
public RequestPublish ( QoSParams qos ) : void
qos QoSParams /// The qos. ///
Результат void

SetQos() публичный Метод

The set qos.
public SetQos ( QoSParams qos ) : void
qos QoSParams /// The qos. ///
Результат void

StartConsuming() публичный Метод

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. ///
Результат string

StopConsuming() публичный Метод

The stop consuming.
public StopConsuming ( string consumerTag ) : void
consumerTag string /// The consumer tag. ///
Результат void

TryStopConsuming() публичный Метод

The try stop consuming.
public TryStopConsuming ( string consumerTag ) : bool
consumerTag string /// The consumer tag. ///
Результат bool

UnpackAs() публичный Метод

The unpack as.
public UnpackAs ( Type type, RabbitDelivery delivery ) : IMessage
type System.Type /// The type. ///
delivery RabbitDelivery /// The delivery. ///
Результат IMessage