Click or drag to resize
BackgroundJobSchedule Method (ExpressionAction, DateTimeOffset)
Creates a new background job based on a specified method call expression and schedules it to be enqueued at the given moment of time.

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

Parameters

methodCall
Type: System.Linq.ExpressionsExpressionAction
Method call expression that will be marshalled to the Server.
enqueueAt
Type: SystemDateTimeOffset
The moment of time at which the job will be enqueued.

Return Value

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