Click or drag to resize
Job Constructor (MethodInfo, Object)
Initializes a new instance of the Job class with the metadata of a method and the given list of arguments.

Namespace: Hangfire.Common
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public Job(
	[NotNullAttribute] MethodInfo method,
	[NotNullAttribute] params Object[] args
)

Parameters

method
Type: System.ReflectionMethodInfo
Method that should be invoked.
args
Type: SystemObject
Arguments that will be passed to a method invocation.
Exceptions
ExceptionCondition
ArgumentNullExceptionmethod argument is null.
ArgumentExceptionParameter/argument count mismatch.
NotSupportedExceptionmethod is not supported.
See Also