C# Class NDomain.Bus.Transport.Azure.Queues.QueueTransport

Inheritance: IInboundTransport, IOutboundTransport
Exibir arquivo Open project: mfelicio/NDomain

Public Methods

Method Description
QueueTransport ( Microsoft.WindowsAzure.Storage.CloudStorageAccount account, string prefix, string inputQueueName ) : NDomain.Bus.Transport
Receive ( System.TimeSpan timeout = null ) : Task
Send ( TransportMessage message ) : System.Threading.Tasks.Task
SendMultiple ( IEnumerable messages ) : System.Threading.Tasks.Task

Private Methods

Method Description
BuildCloudQueueMessage ( TransportMessage message ) : Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage
BuildMessage ( Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage queueMessage ) : TransportMessage
GetMessageWithTimeout ( Microsoft.WindowsAzure.Storage.Queue.CloudQueue queue, System.TimeSpan timeout ) : Task
GetOrCreateQueue ( string endpoint ) : Task
GetQueue ( string endpoint ) : Task
GetQueueName ( string endpoint ) : string

Method Details

QueueTransport() public method

public QueueTransport ( Microsoft.WindowsAzure.Storage.CloudStorageAccount account, string prefix, string inputQueueName ) : NDomain.Bus.Transport
account Microsoft.WindowsAzure.Storage.CloudStorageAccount
prefix string
inputQueueName string
return NDomain.Bus.Transport

Receive() public method

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

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