Click or drag to resize
JobFromExpressionTType Method (ExpressionActionTType)
Gets a new instance of the Job class based on the given expression tree of an instance method call with explicit type specification.

Namespace: Hangfire.Common
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public static Job FromExpression<TType>(
	[InstantHandleAttribute] Expression<Action<TType>> methodCall
)

Parameters

methodCall
Type: System.Linq.ExpressionsExpressionActionTType
Expression tree of a method call on TType.

Type Parameters

TType
Explicit type that should be used on method call.

Return Value

Type: Job
Exceptions
ExceptionCondition
ArgumentNullExceptionmethodCall is null.
ArgumentExceptionmethodCall expression body is not of type MethodCallExpression.
NotSupportedExceptionmethodCall expression contains a method that is not supported.
Remarks

All the arguments are evaluated using the expression compiler that uses caching where possible to decrease the performance penalty.

See Also