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

Parameters

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

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "M:Hangfire.BackgroundJob.Enqueue``1(System.Linq.Expressions.Expression{System.Action{``0}})"]

Return Value

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