Click or drag to resize
BackgroundJobScheduleT Method (ExpressionActionT, 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<T>(
	[NotNullAttribute][InstantHandleAttribute] Expression<Action<T>> methodCall,
	DateTimeOffset enqueueAt
)

Parameters

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

Type Parameters

T
The type whose method will be invoked during the job processing.

Return Value

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