C# Class NDomain.Bus.Transport.Redis.RedisTransport

Inheritance: IInboundTransport, IOutboundTransport
Show file Open project: mfelicio/NDomain

Public Methods

Method Description
Receive ( System.TimeSpan timeout = null ) : Task
RedisTransport ( StackExchange.Redis.ConnectionMultiplexer connection, string prefix, string inputQueue ) : NDomain.Bus.Transport
Send ( TransportMessage message ) : System.Threading.Tasks.Task
SendMultiple ( IEnumerable messages ) : System.Threading.Tasks.Task

Private Methods

Method Description
CommitTransaction ( string transactionId, string messageId ) : System.Threading.Tasks.Task
FailTransaction ( string transactionId, string messageId ) : System.Threading.Tasks.Task
GetMessage ( string messageId ) : int>>.Task
GetMessageKey ( string queue, string messageId ) : string
GetMessageRetryCountKey ( string queue, string messageId ) : string
GetQueuedMessageId ( string transactionId, System.TimeSpan timeout ) : Task
GetRedisKey ( string key ) : string

Method Details

Receive() public method

public Receive ( System.TimeSpan timeout = null ) : Task
timeout System.TimeSpan
return Task

RedisTransport() public method

public RedisTransport ( StackExchange.Redis.ConnectionMultiplexer connection, string prefix, string inputQueue ) : NDomain.Bus.Transport
connection StackExchange.Redis.ConnectionMultiplexer
prefix string
inputQueue string
return NDomain.Bus.Transport

Send() public method

public Send ( TransportMessage message ) : System.Threading.Tasks.Task
message NDomain.Bus.Transport.TransportMessage
return System.Threading.Tasks.Task

SendMultiple() public method

public SendMultiple ( IEnumerable messages ) : System.Threading.Tasks.Task
messages IEnumerable
return System.Threading.Tasks.Task