C# Class Cinchcast.Roque.Triggers.Trigger

Base class for triggers, that when executed add a job to a Queue.
显示文件 Open project: BlogTalkRadio/Roque

Public Methods

Method Description
Activate ( ) : void
Configure ( string queue, string targetTypeFullName, string targetMethodName, string targetArgument, string>.IDictionary settings ) : void
Deactivate ( ) : void
Execute ( bool force = false ) : void
GetLastExecution ( ) : DateTime?
GetNextExecution ( ) : DateTime?
Trigger ( ) : System

Protected Methods

Method Description
EnqueueJob ( ) : bool
ExecuteNow ( System.DateTime lastExecution, bool force = false ) : void
GetNextExecution ( System.DateTime lastExecution ) : DateTime?
GetRedisKey ( string suffixFormat = null ) : string
GetRedisKeyForTrigger ( string triggerName, string suffixFormat = null ) : string
OnActivate ( ) : void
OnDeactivate ( ) : void

Method Details

Activate() public method

public Activate ( ) : void
return void

Configure() public method

public Configure ( string queue, string targetTypeFullName, string targetMethodName, string targetArgument, string>.IDictionary settings ) : void
queue string
targetTypeFullName string
targetMethodName string
targetArgument string
settings string>.IDictionary
return void

Deactivate() public method

public Deactivate ( ) : void
return void

EnqueueJob() protected method

protected EnqueueJob ( ) : bool
return bool

Execute() public method

public Execute ( bool force = false ) : void
force bool
return void

ExecuteNow() protected method

protected ExecuteNow ( System.DateTime lastExecution, bool force = false ) : void
lastExecution System.DateTime
force bool
return void

GetLastExecution() public method

public GetLastExecution ( ) : DateTime?
return DateTime?

GetNextExecution() public method

public GetNextExecution ( ) : DateTime?
return DateTime?

GetNextExecution() protected method

protected GetNextExecution ( System.DateTime lastExecution ) : DateTime?
lastExecution System.DateTime
return DateTime?

GetRedisKey() protected method

protected GetRedisKey ( string suffixFormat = null ) : string
suffixFormat string
return string

GetRedisKeyForTrigger() protected method

protected GetRedisKeyForTrigger ( string triggerName, string suffixFormat = null ) : string
triggerName string
suffixFormat string
return string

OnActivate() protected method

protected OnActivate ( ) : void
return void

OnDeactivate() protected method

protected OnDeactivate ( ) : void
return void

Trigger() public method

public Trigger ( ) : System
return System