| JobFromExpressionTType Method (ExpressionActionTType) |
Namespace: Hangfire.Common
public static Job FromExpression<TType>( [InstantHandleAttribute] Expression<Action<TType>> methodCall )
| Exception | Condition |
|---|---|
| ArgumentNullException | methodCall is null. |
| ArgumentException | methodCall expression body is not of type MethodCallExpression. |
| NotSupportedException | methodCall expression contains a method that is not supported. |
All the arguments are evaluated using the expression compiler that uses caching where possible to decrease the performance penalty.