Click or drag to resize
BackgroundJobEnqueue Method (ExpressionAction)
Creates a new fire-and-forget job based on a given method call expression.

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

Parameters

methodCall
Type: System.Linq.ExpressionsExpressionAction
Method call expression that will be marshalled to a server.

Return Value

Type: String
Unique identifier of a background job.
Exceptions
ExceptionCondition
ArgumentNullExceptionmethodCall is .
See Also