Свойство | Тип | Описание | |
---|---|---|---|
_IsNew | bool |
Метод | Описание | |
---|---|---|
CancelRequest ( |
Sets the Item record with the required settings to complete and cancel a request. Not saved to database call Save() explicitly.
|
|
ClearMessages ( System.TimeSpan messageTimeout = null ) : bool |
Method used to clear out 'old' messages to keep database size down Removes messages that have been started but not completed in the specified timeout period.
|
|
CompleteRequest ( |
Sets the Item record with the required settings to complete a request. Note record is not written to database - Call Save explicitly.
|
|
CreateDatastore ( ) : bool |
Creates the DatabaseTable and stored procedure for the queue. Note this routine requires that a database exists already and uses the same connection string that is used for the main application.
|
|
CreateItem ( |
Creates a new item instance and properly initializes the instance's values.
|
|
DeleteMessage ( string id ) : bool | ||
DeleteWaitingMessages ( string queueName = null ) : bool | ||
Dispose ( ) : void |
Clear data access component
|
|
GetCancelledMessages ( string queueName = null, int maxCount ) : IEnumerable |
Returns all messages in a queue that are cancelled
|
|
GetCompleteQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
Result Cursor: TCompleteMessages
|
|
GetNextQueueMessage ( string queueName = null ) : |
Retrieves the next pending 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.
|
|
GetProperty ( string key ) : object |
Retrieves a value from the Properties collection safely. If the value doesn't exist null is returned.
|
|
GetRecentQueueItems ( string queueName = null, int itemCount = 25 ) : IEnumerable |
Returns a list of recent queue items
|
|
GetTimedOutQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
Returns a list of queue items that have timed out during processing. Not completed where started time is greater than the MessageTimeout.
|
|
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 completion.
|
|
Load ( string id ) : |
Loads a Queue Item
|
|
QueueMessageManager ( ) : System | ||
QueueMessageManager ( string connectionString ) : System | ||
ResubmitMessage ( |
Resubmits an existing message by clearing out all completion/date settings and then resubmitting the entry. This method calls Save() and actually saves the message to disk.
|
|
Save ( |
Saves the passed item or the attached item to the database. Call this after updating properties or individual values.
|
|
SetError ( ) : void |
Clear the error messages
|
|
SetError ( |
Set from exception and optionally use inner exception
|
|
SetError ( string message ) : void |
Set error to the error message
|
|
SubmitRequest ( |
Sets the message properties for starting a new message request operation. Note the record is not written to the database use Save explicitly
|
|
UpdateQueueMessageStatus ( |
Updates the QueueMessageStatus and or messages
|
Метод | Описание | |
---|---|---|
GetProperties ( string stringFieldNameToLoadFrom = "Properties", object entity = null ) : void |
Loads the Properties dictionary with values from a Properties property of an item object. Once loaded you can access the dictionary to read and write values from it arbitrarily and use SetProperties to write the values back in serialized form to the underlying property for database storage.
|
|
SetProperties ( string stringFieldToSaveTo = "Properties", object entity = null ) : void |
Saves the Properties Dictionary - in serialized string form - to a specified item field which in turn allows writing the data back to the database.
|
public CancelRequest ( |
||
item | ||
messageText | string | |
autoSave | bool | |
Результат | bool |
public abstract ClearMessages ( System.TimeSpan messageTimeout = null ) : bool | ||
messageTimeout | System.TimeSpan | |
Результат | bool |
public CompleteRequest ( |
||
item | ||
messageText | string | |
autoSave | bool | |
Результат | bool |
public abstract CreateDatastore ( ) : bool | ||
Результат | bool |
public CreateItem ( |
||
entity | ||
Результат |
public abstract DeleteMessage ( string id ) : bool | ||
id | string | |
Результат | bool |
public abstract DeleteWaitingMessages ( string queueName = null ) : bool | ||
queueName | string | |
Результат | bool |
public abstract GetCancelledMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Результат | IEnumerable |
public abstract GetCompleteQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Результат | IEnumerable |
public abstract GetNextQueueMessage ( string queueName = null ) : |
||
queueName | string | |
Результат |
public abstract 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 |
Результат | IEnumerable |
protected GetProperties ( string stringFieldNameToLoadFrom = "Properties", object entity = null ) : void | ||
stringFieldNameToLoadFrom | string | The name of the field to load the XML properties from. |
entity | object | |
Результат | void |
public GetProperty ( string key ) : object | ||
key | string | |
Результат | object |
public abstract GetRecentQueueItems ( string queueName = null, int itemCount = 25 ) : IEnumerable |
||
queueName | string | |
itemCount | int | |
Результат | IEnumerable |
public abstract GetTimedOutQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Результат | IEnumerable |
public abstract GetWaitingQueueMessageCount ( string queueName = null ) : int | ||
queueName | string | |
Результат | int |
public abstract GetWaitingQueueMessages ( string queueName = null, int maxCount ) : IEnumerable |
||
queueName | string | |
maxCount | int | |
Результат | IEnumerable |
public abstract IsCompleted ( string id = null ) : bool | ||
id | string | |
Результат | bool |
public abstract Load ( string id ) : |
||
id | string | |
Результат |
public QueueMessageManager ( string connectionString ) : System | ||
connectionString | string | |
Результат | System |
public ResubmitMessage ( |
||
item | ||
Результат | bool |
public abstract Save ( |
||
item | ||
Результат | bool |
public SetError ( |
||
ex | ||
checkInner | bool | |
Результат | void |
protected SetProperties ( string stringFieldToSaveTo = "Properties", object entity = null ) : void | ||
stringFieldToSaveTo | string | |
entity | object | |
Результат | void |
public SubmitRequest ( |
||
item | An existing item instance | |
messageText | string | |
autoSave | bool | |
Результат | bool |
public UpdateQueueMessageStatus ( |
||
item | ||
status | string | |
messageText | string | |
percentComplete | int | |
autoSave | bool | |
Результат | bool |