Méthode | Description | |
---|---|---|
ClearMessages ( System.TimeSpan messageTimeout = null ) : bool | ||
CreateDatastore ( ) : bool | ||
DeleteMessage ( string id ) : bool |
Deletes an individual queue message by Id
|
|
DeleteWaitingMessages ( string queueName = null ) : bool |
Deletes all messages that are waiting to be processed
|
|
Dispose ( ) : void |
Clear data access component
|
|
GetCancelledMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
GetCompleteQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
GetNextQueueMessage ( string queueName = null ) : |
Retrieves the next waiting Message from the Queue based on a provided queueName
|
|
GetPendingQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
Retrieves all messages that are pending, that have started but not completed yet.
|
|
GetRecentQueueItems ( string queueName = null, int itemCount = 25 ) : IEnumerable |
Returns a list of recent queue items
|
|
GetTimedOutQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
GetWaitingQueueMessageCount ( string queueName = null ) : int |
Returns a count of messages that are waiting to be processed - this is the queue backup.
|
|
GetWaitingQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
Returns a count of messages that are waiting to be processed - this is the queue backup.
|
|
IsCompleted ( string id = null ) : bool |
Determines if anqueue has been completed successfully or failed. Note this method returns true if the request has completed or cancelled/failed. It just checks for completion.
|
|
Load ( string id ) : |
Loads a Queue Message Item by its ID
|
|
QueueMessageManagerMongoDb ( ) : System | ||
QueueMessageManagerMongoDb ( string connectionString ) : System | ||
Save ( |
Saves the passed message item or the attached item to the database. Call this after updating properties or individual values. Inserts or updates based on whether the ID exists
|
Méthode | Description | |
---|---|---|
GetDatabase ( string connectionString = null, string databaseName = null ) : MongoDatabase |
Creates a connection to a databaseName based on the Databasename and optional server connection string. Returned Mongo DatabaseName 'connection' can be cached and reused.
|
public ClearMessages ( System.TimeSpan messageTimeout = null ) : bool | ||
messageTimeout | System.TimeSpan | |
Résultat | bool |
public DeleteWaitingMessages ( string queueName = null ) : bool | ||
queueName | string | |
Résultat | bool |
public GetCancelledMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Résultat | IEnumerable |
public GetCompleteQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Résultat | IEnumerable |
protected GetDatabase ( string connectionString = null, string databaseName = null ) : MongoDatabase | ||
connectionString | string | Mongo server connection string. /// Can either be a connection string entry name from the ConnectionStrings /// section in the config file or a full server string. /// If not specified looks for connectionstring entry in same name as /// the context. Failing that mongodb://localhost is used. /// /// Examples: /// MyDatabaseConnectionString (ConnectionStrings Config Name) /// mongodb://localhost /// mongodb://localhost:22011/MyDatabase /// mongodb://username:password@localhost:22011/MyDatabase /// |
databaseName | string | Name of the databaseName to work with if not specified on the connection string |
Résultat | MongoDatabase |
public GetNextQueueMessage ( string queueName = null ) : |
||
queueName | string | Name of the queue |
Résultat |
public GetPendingQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | Name of the queue to return items for |
maxCount | int | Optional - max number of items to return |
Résultat | IEnumerable |
public GetRecentQueueItems ( string queueName = null, int itemCount = 25 ) : IEnumerable |
||
queueName | string | |
itemCount | int | Max number of items to return |
Résultat | IEnumerable |
public GetTimedOutQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Résultat | IEnumerable |
public GetWaitingQueueMessageCount ( string queueName = null ) : int | ||
queueName | string | |
Résultat | int |
public GetWaitingQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Résultat | IEnumerable |
public Load ( string id ) : |
||
id | string | |
Résultat |
public QueueMessageManagerMongoDb ( ) : System | ||
Résultat | System |
public QueueMessageManagerMongoDb ( string connectionString ) : System | ||
connectionString | string | |
Résultat | System |
public Save ( |
||
item | ||
Résultat | bool |