C# Class Microsoft.Research.DataOnboarding.QueueService.QueueRepository

Contains the methods to interact with azure queue.
Inheritance: IQueueRepository
显示文件 Open project: CDLUC3/dataup2 Class Usage Examples

Public Methods

Method Description
AddMessageToQueue ( BaseMessage message ) : void

Adds the message to queue.

AddMessageToQueueAsync ( BaseMessage message ) : Task

Ads the message to queue asynchronously.

DeleteFromQueue ( BaseMessage message ) : void

Deletes the message from the queue.

GetQueuedMessages ( int numberOfMessages, int visibiltiyPeriodInSeconds ) : List

Reads the Message from queue.

UpdateMessage ( BaseMessage message ) : void

Updates the message content in the queue.

Private Methods

Method Description
Deserialize ( Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage cloudMessage ) : BaseMessage

Deserializes the CloudMessage to BaseMessage.

GetKnownTypes ( ) : List

Returns the list of known types.

QueueRepository ( ) : Microsoft.Research.DataOnboarding.Utilities
Serialize ( BaseMessage message ) : string

Serializes the BaseMessage.

Method Details

AddMessageToQueue() public method

Adds the message to queue.
public AddMessageToQueue ( BaseMessage message ) : void
message Microsoft.Research.DataOnboarding.Utilities.Model.BaseMessage BaseMessage instance.
return void

AddMessageToQueueAsync() public method

Ads the message to queue asynchronously.
public AddMessageToQueueAsync ( BaseMessage message ) : Task
message Microsoft.Research.DataOnboarding.Utilities.Model.BaseMessage BaseMessage instance.
return Task

DeleteFromQueue() public method

Deletes the message from the queue.
public DeleteFromQueue ( BaseMessage message ) : void
message Microsoft.Research.DataOnboarding.Utilities.Model.BaseMessage BaseMessage instance.
return void

GetQueuedMessages() public method

Reads the Message from queue.
public GetQueuedMessages ( int numberOfMessages, int visibiltiyPeriodInSeconds ) : List
numberOfMessages int Number of messages to be read.
visibiltiyPeriodInSeconds int Number of seconds after which the message will be visible again.
return List

UpdateMessage() public method

Updates the message content in the queue.
public UpdateMessage ( BaseMessage message ) : void
message Microsoft.Research.DataOnboarding.Utilities.Model.BaseMessage BaseMessage instance.
return void