C# Class Orleans.StreamProviders.Implementation.RabbitMessageQueueDataManager

显示文件 Open project: Merroy/Orleans Class Usage Examples

Public Methods

Method Description
AddQueueMessage ( RabbitMessage message ) : System.Threading.Tasks.Task

Adds a new message to the queue.

ClearQueue ( ) : System.Threading.Tasks.Task

Clears the queue.

DeleteQueue ( ) : System.Threading.Tasks.Task

Deletes the queue.

DeleteQueueMessage ( RabbitMessage message ) : System.Threading.Tasks.Task

Deletes a messages from the queue.

GetQueueMessages ( int count = -1 ) : Task>

Gets a number of new messages from the queue.

InitQueueAsync ( ) : System.Threading.Tasks.Task

Initializes the connection to the queue.

RabbitMessageQueueDataManager ( string queueName, string storageConnectionString ) : System

Constructor.

RabbitMessageQueueDataManager ( string queueName, string deploymentId, string storageConnectionString ) : System

Constructor.

Private Methods

Method Description
CheckAlertSlowAccess ( System.DateTime startOperation, string operation ) : void
GetBasicParameters ( ) : IBasicProperties
ReportErrorAndRethrow ( Exception exc, string operation ) : void

Method Details

AddQueueMessage() public method

Adds a new message to the queue.
public AddQueueMessage ( RabbitMessage message ) : System.Threading.Tasks.Task
message Orleans.StreamProviders.Entity.RabbitMessage Message to be added to the queue.
return System.Threading.Tasks.Task

ClearQueue() public method

Clears the queue.
public ClearQueue ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

DeleteQueue() public method

Deletes the queue.
public DeleteQueue ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

DeleteQueueMessage() public method

Deletes a messages from the queue.
public DeleteQueueMessage ( RabbitMessage message ) : System.Threading.Tasks.Task
message Orleans.StreamProviders.Entity.RabbitMessage A message to be deleted from the queue.
return System.Threading.Tasks.Task

GetQueueMessages() public method

Gets a number of new messages from the queue.
public GetQueueMessages ( int count = -1 ) : Task>
count int Number of messages to get from the queue.
return Task>

InitQueueAsync() public method

Initializes the connection to the queue.
public InitQueueAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

RabbitMessageQueueDataManager() public method

Constructor.
public RabbitMessageQueueDataManager ( string queueName, string storageConnectionString ) : System
queueName string Name of the queue to be connected to.
storageConnectionString string Connection string for the Azure storage account used to host this table.
return System

RabbitMessageQueueDataManager() public method

Constructor.
public RabbitMessageQueueDataManager ( string queueName, string deploymentId, string storageConnectionString ) : System
queueName string Name of the queue to be connected to.
deploymentId string The deployment id of the Azure service hosting this silo. It will be concatenated to the queueName.
storageConnectionString string Connection string for the Azure storage account used to host this table.
return System