C# Class Cinchcast.Roque.Triggers.Trigger

Base class for triggers, that when executed add a job to a Queue.
Afficher le fichier Open project: BlogTalkRadio/Roque

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

public Activate ( ) : void
Résultat void

Configure() public méthode

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
Résultat void

Deactivate() public méthode

public Deactivate ( ) : void
Résultat void

EnqueueJob() protected méthode

protected EnqueueJob ( ) : bool
Résultat bool

Execute() public méthode

public Execute ( bool force = false ) : void
force bool
Résultat void

ExecuteNow() protected méthode

protected ExecuteNow ( System.DateTime lastExecution, bool force = false ) : void
lastExecution System.DateTime
force bool
Résultat void

GetLastExecution() public méthode

public GetLastExecution ( ) : DateTime?
Résultat DateTime?

GetNextExecution() public méthode

public GetNextExecution ( ) : DateTime?
Résultat DateTime?

GetNextExecution() protected méthode

protected GetNextExecution ( System.DateTime lastExecution ) : DateTime?
lastExecution System.DateTime
Résultat DateTime?

GetRedisKey() protected méthode

protected GetRedisKey ( string suffixFormat = null ) : string
suffixFormat string
Résultat string

GetRedisKeyForTrigger() protected méthode

protected GetRedisKeyForTrigger ( string triggerName, string suffixFormat = null ) : string
triggerName string
suffixFormat string
Résultat string

OnActivate() protected méthode

protected OnActivate ( ) : void
Résultat void

OnDeactivate() protected méthode

protected OnDeactivate ( ) : void
Résultat void

Trigger() public méthode

public Trigger ( ) : System
Résultat System