Method | Description | |
---|---|---|
Dispose ( ) : void | ||
Initialize ( |
Initializes the QueueController from the Queue Configuration Settings
|
|
PauseProcessing ( bool pause = true ) : void |
Pauses processing by keeping the thread alive and waiting until the pause is unset
|
|
QueueController ( ) : System | ||
StartProcessing ( ) : void |
Synchronous Message Processing routine - will process one message after another
|
|
StartProcessingAsync ( int threads = -1 ) : void |
Starts queue processing asynchronously on the specified number of threads. This is a common scenario for Windows Forms interfaces so the UI stays active while the application monitors and processes the queue on a separate non-ui thread
|
|
StopProcessing ( ) : void |
Shuts down the Message Processing loop
|
Method | Description | |
---|---|---|
ExecuteSteps ( |
This is the 'handler' code that actually does processing work It merely calls into any events that are hooked up to the controller for these events: ExecuteStart ExecuteComplete ExecuteFailed
|
|
OnExecuteComplete ( |
Override this method to do any post processing that needs to happen after each async operation has successfully completed. Optional - use for things like logging or reporting on status.
|
|
OnExecuteFailed ( |
Override this method to handle any errors that occured during processing of the async task. Optional - implement for logging or notifications.
|
|
OnExecuteStart ( |
Override this method to process your async operation. Required for anything to happen when the message is processed. If the operation succeeds (no exception), OnExecuteComplete will be called. This method should throw an exception if the operation fails, so that OnExecuteFailed will be fired.
|
|
OnGetNextQueueMessage ( |
Message hook that's responsible for retrieving the next message. The base version pulls the next message for the given queue. You can override this method to conditionally override this behavior such as filter when and how messages are read.
|
|
OnNextMessageFailed ( |
Override this method to handle any errors that occured trying to receive the next message from the SQL table. Allows for error handling or logging in your own applications.
|
|
OnStartProcessing ( ) : bool |
Method that is called just before the the controller starts up processing for the queue. If you return false from this method the controller queue is not started.
|
|
OnStopProcessing ( ) : bool |
Method that is called just before the controller stops processing requests. Use to send messages. If you return false from this method the queue is not stoped.
|
protected ExecuteSteps ( |
||
manager | Instance of QueueMessageManager and it's Item property | |
return | void |
public Initialize ( |
||
configuration | ||
queueManagerType | ||
return | void |
protected OnExecuteComplete ( |
||
Message | ||
return | void |
protected OnExecuteFailed ( |
||
manager | /// QueueManager instance. Use its Item property to get access to the current method /// | |
ex | /// Exeception that caused the operation to fail /// | |
return | void |
protected OnExecuteStart ( |
||
manager | /// QueueManager instance. Use its Item property to get access to the current method /// | |
return | void |
protected OnGetNextQueueMessage ( |
||
manager | A manager instance that can retrieve | |
queueName | string | The queue to check |
return |
protected OnNextMessageFailed ( |
||
manager | /// QueueManager instance. Use its Item property to get access to the current method /// | |
ex | /// Exeception that caused the operation to fail /// | |
return | void |
public PauseProcessing ( bool pause = true ) : void | ||
pause | bool | |
return | void |
public StartProcessingAsync ( int threads = -1 ) : void | ||
threads | int | |
return | void |