Dreamine.Communication.RabbitMQ 1.0.1
Dreamine.Communication.RabbitMQ 통신 기능과 관련 API를 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel 클래스 참조sealed

더 자세히 ...

Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel에 대한 상속 다이어그램 :
Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel에 대한 협력 다이어그램:

Public 멤버 함수

 RabbitMqClientChannel (IModel channel)
void ExchangeDeclare (string exchange, string type, bool durable, bool autoDelete)
void QueueDeclare (string queue, bool durable, bool exclusive, bool autoDelete)
void QueueBind (string queue, string exchange, string routingKey)
IRabbitMqBasicProperties CreateBasicProperties ()
void BasicPublish (string exchange, string routingKey, bool mandatory, IRabbitMqBasicProperties properties, ReadOnlyMemory< byte > body)
string BasicConsume (string queue, bool autoAck, Func< RabbitMqDelivery, CancellationToken, Task > onReceived)
void BasicAck (ulong deliveryTag, bool multiple)
void BasicNack (ulong deliveryTag, bool multiple, bool requeue)
void BasicReject (ulong deliveryTag, bool requeue)
void BasicCancel (string consumerTag)
void Close ()
void Dispose ()

속성

bool IsOpen [get]

Private 속성

readonly IModel _channel

상세한 설명

Rabbit Mq Client Channel 기능과 관련 상태를 캡슐화합니다.

RabbitMqClientConnectionFactory.cs 파일의 173 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ RabbitMqClientChannel()

Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.RabbitMqClientChannel ( IModel channel)
inline

실제 RabbitMQ 채널 모델을 감싸는 어댑터를 초기화합니다.

매개변수
channel감쌀 실제 채널입니다.

RabbitMqClientConnectionFactory.cs 파일의 201 번째 라인에서 정의되었습니다.

202 {
203 _channel = channel;
204 }

다음을 참조함 : _channel.

멤버 함수 문서화

◆ BasicAck()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.BasicAck ( ulong deliveryTag,
bool multiple )
inline

Basic Ack 작업을 수행합니다.

매개변수
deliveryTagdelivery Tag에 사용할 ulong 값입니다.
multiplemultiple에 사용할 bool 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 520 번째 라인에서 정의되었습니다.

521 {
522 _channel.BasicAck(deliveryTag, multiple);
523 }

다음을 참조함 : _channel.

◆ BasicCancel()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.BasicCancel ( string consumerTag)
inline

Basic Cancel 작업을 수행합니다.

매개변수
consumerTagconsumer Tag에 사용할 string 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 607 번째 라인에서 정의되었습니다.

608 {
609 _channel.BasicCancel(consumerTag);
610 }

다음을 참조함 : _channel.

◆ BasicConsume()

string Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.BasicConsume ( string queue,
bool autoAck,
Func< RabbitMqDelivery, CancellationToken, Task > onReceived )
inline

Basic Consume 작업을 수행합니다.

매개변수
queuequeue에 사용할 string 값입니다.
autoAckauto Ack에 사용할 bool 값입니다.
onReceivedon Received에 사용할 Func<RabbitMqDelivery, CancellationToken, Task> 값입니다.
반환값
Basic Consume 작업에서 생성한 string 결과입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 481 번째 라인에서 정의되었습니다.

485 {
486 var consumer = new AsyncEventingBasicConsumer(_channel);
487 consumer.Received += async (_, args) =>
488 {
489 var delivery = new RabbitMqDelivery(args.DeliveryTag, args.RoutingKey, args.Body);
490 await onReceived(delivery, CancellationToken.None).ConfigureAwait(false);
491 };
492
493 return _channel.BasicConsume(queue, autoAck, consumer);
494 }

다음을 참조함 : _channel.

◆ BasicNack()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.BasicNack ( ulong deliveryTag,
bool multiple,
bool requeue )
inline

Basic Nack 작업을 수행합니다.

매개변수
deliveryTagdelivery Tag에 사용할 ulong 값입니다.
multiplemultiple에 사용할 bool 값입니다.
requeuerequeue에 사용할 bool 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 557 번째 라인에서 정의되었습니다.

558 {
559 _channel.BasicNack(deliveryTag, multiple, requeue);
560 }

다음을 참조함 : _channel.

◆ BasicPublish()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.BasicPublish ( string exchange,
string routingKey,
bool mandatory,
IRabbitMqBasicProperties properties,
ReadOnlyMemory< byte > body )
inline

Basic Publish 작업을 수행합니다.

매개변수
exchangeexchange에 사용할 string 값입니다.
routingKeyrouting Key에 사용할 string 값입니다.
mandatorymandatory에 사용할 bool 값입니다.
propertiesproperties에 사용할 IRabbitMqBasicProperties 값입니다.
bodybody에 사용할 ReadOnlyMemory<byte> 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 423 번째 라인에서 정의되었습니다.

429 {
430 var clientProperties = properties is RabbitMqClientBasicProperties wrapped
431 ? wrapped.Inner
432 : _channel.CreateBasicProperties();
433
434 clientProperties.Persistent = properties.Persistent;
435 clientProperties.ContentType = properties.ContentType;
436 clientProperties.Type = properties.Type;
437
438 _channel.BasicPublish(exchange, routingKey, mandatory, clientProperties, body);
439 }

다음을 참조함 : _channel, Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqBasicProperties.ContentType, Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqBasicProperties.Persistent, Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqBasicProperties.Type.

◆ BasicReject()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.BasicReject ( ulong deliveryTag,
bool requeue )
inline

Basic Reject 작업을 수행합니다.

매개변수
deliveryTagdelivery Tag에 사용할 ulong 값입니다.
requeuerequeue에 사용할 bool 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 586 번째 라인에서 정의되었습니다.

587 {
588 _channel.BasicReject(deliveryTag, requeue);
589 }

다음을 참조함 : _channel.

◆ Close()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.Close ( )
inline

Close 작업을 수행합니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 620 번째 라인에서 정의되었습니다.

621 {
622 _channel.Close();
623 }

다음을 참조함 : _channel.

◆ CreateBasicProperties()

IRabbitMqBasicProperties Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.CreateBasicProperties ( )
inline

Basic Properties 값을 생성합니다.

반환값
Create Basic Properties 작업에서 생성한 IRabbitMqBasicProperties 결과입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 370 번째 라인에서 정의되었습니다.

371 {
372 return new RabbitMqClientBasicProperties(_channel.CreateBasicProperties());
373 }

다음을 참조함 : _channel.

◆ Dispose()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.Dispose ( )
inline

실제 채널 리소스를 해제합니다.

RabbitMqClientConnectionFactory.cs 파일의 633 번째 라인에서 정의되었습니다.

634 {
635 _channel.Dispose();
636 }

다음을 참조함 : _channel.

◆ ExchangeDeclare()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.ExchangeDeclare ( string exchange,
string type,
bool durable,
bool autoDelete )
inline

Exchange Declare 작업을 수행합니다.

매개변수
exchangeexchange에 사용할 string 값입니다.
typetype에 사용할 string 값입니다.
durabledurable에 사용할 bool 값입니다.
autoDeleteauto Delete에 사용할 bool 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 256 번째 라인에서 정의되었습니다.

261 {
262 _channel.ExchangeDeclare(exchange, type, durable, autoDelete, arguments: null);
263 }

다음을 참조함 : _channel.

◆ QueueBind()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.QueueBind ( string queue,
string exchange,
string routingKey )
inline

Queue Bind 작업을 수행합니다.

매개변수
queuequeue에 사용할 string 값입니다.
exchangeexchange에 사용할 string 값입니다.
routingKeyrouting Key에 사용할 string 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 346 번째 라인에서 정의되었습니다.

350 {
351 _channel.QueueBind(queue, exchange, routingKey);
352 }

다음을 참조함 : _channel.

◆ QueueDeclare()

void Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.QueueDeclare ( string queue,
bool durable,
bool exclusive,
bool autoDelete )
inline

Queue Declare 작업을 수행합니다.

매개변수
queuequeue에 사용할 string 값입니다.
durabledurable에 사용할 bool 값입니다.
exclusiveexclusive에 사용할 bool 값입니다.
autoDeleteauto Delete에 사용할 bool 값입니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 305 번째 라인에서 정의되었습니다.

310 {
311 _channel.QueueDeclare(queue, durable, exclusive, autoDelete, arguments: null);
312 }

다음을 참조함 : _channel.

멤버 데이터 문서화

◆ _channel

readonly IModel Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel._channel
private

channel 값을 보관합니다.

RabbitMqClientConnectionFactory.cs 파일의 183 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : BasicAck(), BasicCancel(), BasicConsume(), BasicNack(), BasicPublish(), BasicReject(), Close(), CreateBasicProperties(), Dispose(), ExchangeDeclare(), QueueBind(), QueueDeclare(), RabbitMqClientChannel().

속성 문서화

◆ IsOpen

bool Dreamine.Communication.RabbitMQ.Infrastructure.RabbitMqClientConnectionFactory.RabbitMqClientChannel.IsOpen
get

실제 채널이 열려 있는지 여부를 가져옵니다.

Dreamine.Communication.RabbitMQ.Infrastructure.IRabbitMqChannel를 구현.

RabbitMqClientConnectionFactory.cs 파일의 214 번째 라인에서 정의되었습니다.


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: