C# Class Hangfire.Mongo.MongoFetchedJob

Hangfire fetched job for Mongo database
Inheritance: IFetchedJob
Datei anzeigen Open project: Trov/Hangfire.Mongo Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes the object

MongoFetchedJob ( HangfireDbContext connection, int id, string jobId, string queue ) : System

Constructs fetched job by database connection, identifier, job ID and queue

RemoveFromQueue ( ) : void

Removes fetched job from a queue

Requeue ( ) : void

Puts fetched job into a queue

Method Details

Dispose() public method

Disposes the object
public Dispose ( ) : void
return void

MongoFetchedJob() public method

Constructs fetched job by database connection, identifier, job ID and queue
public MongoFetchedJob ( HangfireDbContext connection, int id, string jobId, string queue ) : System
connection Hangfire.Mongo.Database.HangfireDbContext Database connection
id int Identifier
jobId string Job ID
queue string Queue name
return System

RemoveFromQueue() public method

Removes fetched job from a queue
public RemoveFromQueue ( ) : void
return void

Requeue() public method

Puts fetched job into a queue
public Requeue ( ) : void
return void