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:
public static string Schedule(
	[NotNullAttribute][InstantHandleAttribute] Expression<Action> methodCall,
	DateTimeOffset enqueueAt


Type: System.Linq.ExpressionsExpressionAction
Method call expression that will be marshalled to the Server.
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