C# Class NanoMessageBus.Channels.RabbitMessageAdapter

Exibir arquivo Open project: joliver/NanoMessageBus

Public Methods

Method Description
AppendException ( RabbitMQ.Client.Events.BasicDeliverEventArgs message, Exception exception, int attempt ) : void
AppendRetryAddress ( RabbitMQ.Client.Events.BasicDeliverEventArgs message ) : void
Build ( ChannelMessage message, IBasicProperties properties ) : RabbitMQ.Client.Events.BasicDeliverEventArgs
Build ( RabbitMQ.Client.Events.BasicDeliverEventArgs message ) : ChannelMessage
RabbitMessageAdapter ( NanoMessageBus.Channels.RabbitChannelGroupConfiguration configuration ) : System

Protected Methods

Method Description
AppendException ( RabbitMQ.Client.Events.BasicDeliverEventArgs message, Exception exception, int attempt, int depth ) : void
AppendHeaders ( ChannelMessage message, IBasicProperties properties ) : void
CanAppendException ( RabbitMQ.Client.Events.BasicDeliverEventArgs message, Exception exception, int attempt, int depth ) : bool
RabbitMessageAdapter ( ) : System
Translate ( ChannelMessage message, IBasicProperties properties ) : RabbitMQ.Client.Events.BasicDeliverEventArgs
Translate ( RabbitMQ.Client.Events.BasicDeliverEventArgs message ) : ChannelMessage

Private Methods

Method Description
Deserialize ( byte body, string type, string format, string encoding ) : IEnumerable
ParseType ( string original ) : Type
SetExpiration ( IBasicProperties properties, ChannelMessage message ) : void

Method Details

AppendException() public method

public AppendException ( RabbitMQ.Client.Events.BasicDeliverEventArgs message, Exception exception, int attempt ) : void
message RabbitMQ.Client.Events.BasicDeliverEventArgs
exception System.Exception
attempt int
return void

AppendException() protected method

protected AppendException ( RabbitMQ.Client.Events.BasicDeliverEventArgs message, Exception exception, int attempt, int depth ) : void
message RabbitMQ.Client.Events.BasicDeliverEventArgs
exception System.Exception
attempt int
depth int
return void

AppendHeaders() protected method

protected AppendHeaders ( ChannelMessage message, IBasicProperties properties ) : void
message ChannelMessage
properties IBasicProperties
return void

AppendRetryAddress() public method

public AppendRetryAddress ( RabbitMQ.Client.Events.BasicDeliverEventArgs message ) : void
message RabbitMQ.Client.Events.BasicDeliverEventArgs
return void

Build() public method

public Build ( ChannelMessage message, IBasicProperties properties ) : RabbitMQ.Client.Events.BasicDeliverEventArgs
message ChannelMessage
properties IBasicProperties
return RabbitMQ.Client.Events.BasicDeliverEventArgs

Build() public method

public Build ( RabbitMQ.Client.Events.BasicDeliverEventArgs message ) : ChannelMessage
message RabbitMQ.Client.Events.BasicDeliverEventArgs
return ChannelMessage

CanAppendException() protected method

protected CanAppendException ( RabbitMQ.Client.Events.BasicDeliverEventArgs message, Exception exception, int attempt, int depth ) : bool
message RabbitMQ.Client.Events.BasicDeliverEventArgs
exception System.Exception
attempt int
depth int
return bool

RabbitMessageAdapter() protected method

protected RabbitMessageAdapter ( ) : System
return System

RabbitMessageAdapter() public method

public RabbitMessageAdapter ( NanoMessageBus.Channels.RabbitChannelGroupConfiguration configuration ) : System
configuration NanoMessageBus.Channels.RabbitChannelGroupConfiguration
return System

Translate() protected method

protected Translate ( ChannelMessage message, IBasicProperties properties ) : RabbitMQ.Client.Events.BasicDeliverEventArgs
message ChannelMessage
properties IBasicProperties
return RabbitMQ.Client.Events.BasicDeliverEventArgs

Translate() protected method

protected Translate ( RabbitMQ.Client.Events.BasicDeliverEventArgs message ) : ChannelMessage
message RabbitMQ.Client.Events.BasicDeliverEventArgs
return ChannelMessage