C# Class Hangfire.Server.ServerJobExecutionContext

Inheritance: IJobExecutionContext
Exibir arquivo Open project: Softwire/Hangfire Class Usage Examples

Public Methods

Method Description
LogDebug ( string message ) : void
LogError ( string message ) : void
LogFatal ( string message ) : void
LogInfo ( string message ) : void
LogWarn ( string message ) : void
ServerJobExecutionContext ( [ jobId, [ connection, [ workerContext, CancellationToken shutdownToken ) : Hangfire.Annotations
ThrowIfCancellationRequested ( ) : void
UpdateProgress ( int percentComplete, string currentStatus ) : void

Private Methods

Method Description
IsJobAborted ( ) : bool
Log ( string loglevel, string message ) : void

Method Details

LogDebug() public method

public LogDebug ( string message ) : void
message string
return void

LogError() public method

public LogError ( string message ) : void
message string
return void

LogFatal() public method

public LogFatal ( string message ) : void
message string
return void

LogInfo() public method

public LogInfo ( string message ) : void
message string
return void

LogWarn() public method

public LogWarn ( string message ) : void
message string
return void

ServerJobExecutionContext() public method

public ServerJobExecutionContext ( [ jobId, [ connection, [ workerContext, CancellationToken shutdownToken ) : Hangfire.Annotations
jobId [
connection [
workerContext [
shutdownToken System.Threading.CancellationToken
return Hangfire.Annotations

ThrowIfCancellationRequested() public method

public ThrowIfCancellationRequested ( ) : void
return void

UpdateProgress() public method

public UpdateProgress ( int percentComplete, string currentStatus ) : void
percentComplete int
currentStatus string
return void