C# 클래스 InvertedSoftware.WorkflowEngine.Processor

The class in charge of processing framework jobs
파일 보기 프로젝트 열기: invertedsoftware/Inverted-Software-Workflow-Engine

공개 프로퍼티들

프로퍼티 타입 설명
JobsRunning int

Private Properties

프로퍼티 타입 설명
LoadActiveQueue void
RunFramework void
RunFramework void
RunFrameworkJob void
RunRemoteTransactionalFramework void
RunTransactionalFramework void

공개 메소드들

메소드 설명
Processor ( ) : System

Constracor

ProcessorQueue_ProcessorQueueChanged ( object sender, ProcessorQueueChangedEventArgs e ) : void

This fires in the rare event when the queue goes offline. The framework will then look for another queue This will simply soft restart the processor, which will point to the next available queue

ReportJobComplete ( IWorkflowMessage workflowMessage, ProcessorJob currentJob ) : void
ReportJobError ( Exception e, ProcessorStep workflowStep, IWorkflowMessage workflowMessage, ProcessorJob currentJob ) : void

Reports a job error

StartFramework ( string jobName ) : void

This method starts the framework and blocks. Call this from an exe or a windows service on a new thread.

StopFramework ( bool isSoftExit ) : void

Stop the framework from processing any more jobs

workflowQueue_PeekCompleted ( object sender, System.Messaging.PeekCompletedEventArgs e ) : void

비공개 메소드들

메소드 설명
LoadActiveQueue ( ) : void

Load the active Queue for the next Job

RunFramework ( ) : void
RunFramework ( int exceptionsBeforeExit, int currentExceptionNumber, int pauseFor ) : void

Starts to run the framework

RunFrameworkJob ( System.Messaging.Message queueMessage, System.Messaging.MessageQueueTransaction transaction ) : void

Runs a single job thread

RunRemoteTransactionalFramework ( ) : void

Starts to listen to a remote Transactional Queue and process Jobs This is not tested yet

RunTransactionalFramework ( ) : void

Starts to listen to a local Transactional Queue and process Jobs

메소드 상세

Processor() 공개 메소드

Constracor
public Processor ( ) : System
리턴 System

ProcessorQueue_ProcessorQueueChanged() 공개 메소드

This fires in the rare event when the queue goes offline. The framework will then look for another queue This will simply soft restart the processor, which will point to the next available queue
public ProcessorQueue_ProcessorQueueChanged ( object sender, ProcessorQueueChangedEventArgs e ) : void
sender object
e InvertedSoftware.WorkflowEngine.DataObjects.ProcessorQueueChangedEventArgs
리턴 void

ReportJobComplete() 공개 정적인 메소드

public static ReportJobComplete ( IWorkflowMessage workflowMessage, ProcessorJob currentJob ) : void
workflowMessage IWorkflowMessage
currentJob InvertedSoftware.WorkflowEngine.DataObjects.ProcessorJob
리턴 void

ReportJobError() 공개 정적인 메소드

Reports a job error
public static ReportJobError ( Exception e, ProcessorStep workflowStep, IWorkflowMessage workflowMessage, ProcessorJob currentJob ) : void
e System.Exception The exception to report
workflowStep InvertedSoftware.WorkflowEngine.DataObjects.ProcessorStep
workflowMessage IWorkflowMessage The original message pulled from the queue
currentJob InvertedSoftware.WorkflowEngine.DataObjects.ProcessorJob
리턴 void

StartFramework() 공개 메소드

This method starts the framework and blocks. Call this from an exe or a windows service on a new thread.
public StartFramework ( string jobName ) : void
jobName string The workflow job name
리턴 void

StopFramework() 공개 메소드

Stop the framework from processing any more jobs
public StopFramework ( bool isSoftExit ) : void
isSoftExit bool Block untill the current jobs are done
리턴 void

workflowQueue_PeekCompleted() 공개 메소드

public workflowQueue_PeekCompleted ( object sender, System.Messaging.PeekCompletedEventArgs e ) : void
sender object
e System.Messaging.PeekCompletedEventArgs
리턴 void

프로퍼티 상세

JobsRunning 공개적으로 프로퍼티

Get the count of jobs currently running
public int JobsRunning
리턴 int