| 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: HangfireAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax public static string Schedule(
[NotNullAttribute][InstantHandleAttribute] Expression<Action> methodCall,
DateTimeOffset enqueueAt
)
Public Shared Function Schedule (
<NotNullAttribute><InstantHandleAttribute> methodCall As Expression(Of Action),
enqueueAt As DateTimeOffset
) As String
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:
StringUnique identifier of a created job.
See Also