Click or drag to resize
Job Constructor (Type, MethodInfo)
Initializes a new instance of the Job class with the type, metadata of a method with no arguments.

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

Parameters

type
Type: SystemType
Type that contains the given method.
method
Type: System.ReflectionMethodInfo
Method that should be invoked.
Exceptions
ExceptionCondition
ArgumentNullExceptiontype argument is null.
ArgumentNullExceptionmethod argument is null.
ArgumentExceptiontype does not contain the given method.
ArgumentExceptionParameter/argument count mismatch.
NotSupportedExceptionmethod is not supported.
See Also