C# Class Cinchcast.Roque.Core.Executor

Executes a Job by invoking a method in a service class. - If job target type is an interface castle windsor container is used to obtain a service. - Job retries are supported by using the RetryOnAttribute or throwing a ShouldRetryException
Show file Open project: BlogTalkRadio/Roque Class Usage Examples

Public Methods

Method Description
Execute ( Job job ) : void
GetEventArgsType ( EventInfo eventType ) : Type
RegisterSubscriber ( object subscriber, string sourceQueue = null, string queue = null ) : void
RegisterSubscribersForWorker ( Cinchcast.Roque.Core.Worker worker ) : void

Protected Methods

Method Description
DoExecute ( Job job ) : void

Private Methods

Method Description
GetTarget ( string targetTypeName, bool ifNotFoundUseEventProxy = false ) : Target
InvokeTarget ( Job job ) : void

Method Details

DoExecute() protected method

protected DoExecute ( Job job ) : void
job Job
return void

Execute() public method

public Execute ( Job job ) : void
job Job
return void

GetEventArgsType() public static method

public static GetEventArgsType ( EventInfo eventType ) : Type
eventType System.Reflection.EventInfo
return System.Type

RegisterSubscriber() public method

public RegisterSubscriber ( object subscriber, string sourceQueue = null, string queue = null ) : void
subscriber object
sourceQueue string
queue string
return void

RegisterSubscribersForWorker() public method

public RegisterSubscribersForWorker ( Cinchcast.Roque.Core.Worker worker ) : void
worker Cinchcast.Roque.Core.Worker
return void