| BackgroundJobEnqueueT Method (ExpressionActionT) |
Creates a new fire-and-forget job based on a given method call expression.
Namespace: HangfireAssembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax public static string Enqueue<T>(
[NotNullAttribute][InstantHandleAttribute] Expression<Action<T>> methodCall
)
Public Shared Function Enqueue(Of T) (
<NotNullAttribute><InstantHandleAttribute> methodCall As Expression(Of Action(Of T))
) As String
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:
StringUnique identifier of a background job.
Exceptions See Also Reference
Enqueue Overload