Click or drag to resize
BackgroundJobSchedule Method (ExpressionAction, TimeSpan)
Creates a new background job based on a specified static method call expression and schedules it to be enqueued after a given delay.

Namespace: Hangfire
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public static string Schedule(
	[NotNullAttribute][InstantHandleAttribute] Expression<Action> methodCall,
	TimeSpan delay
)

Parameters

methodCall
Type: System.Linq.ExpressionsExpressionAction
Instance method call expression that will be marshalled to the Server.
delay
Type: SystemTimeSpan
Delay, after which the job will be enqueued.

Return Value

Type: String
Unique identifier of the created job.
See Also