 | BackgroundJobEnqueue Method (ExpressionAction) |
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
Syntaxpublic static string Enqueue(
[NotNullAttribute][InstantHandleAttribute] Expression<Action> methodCall
)
Public Shared Function Enqueue (
<NotNullAttribute><InstantHandleAttribute> methodCall As Expression(Of Action)
) As String
Parameters
- methodCall
- Type: System.Linq.ExpressionsExpressionAction
Method call expression that will be marshalled to a server.
Return Value
Type:
StringUnique identifier of a background job.
Exceptions
See AlsoReference
Enqueue Overload