Click or drag to resize
JobFilterCollection Class
Represents a class that contains the job filters.
Inheritance Hierarchy
SystemObject
  Hangfire.CommonJobFilterCollection

Namespace: Hangfire.Common
Assembly: Hangfire.Core (in Hangfire.Core.dll) Version: 1.5.0.0
Syntax
public class JobFilterCollection : IJobFilterProvider, 
	IEnumerable<JobFilter>, IEnumerable

The JobFilterCollection type exposes the following members.

Constructors
  NameDescription
Public methodJobFilterCollection
Initializes a new instance of the JobFilterCollection class
Top
Properties
  NameDescription
Public propertyCount
Gets the number of filters in the global job filter collection.
Top
Methods
  NameDescription
Public methodAdd(Object)
Adds the specified filter to the global filter collection.
Public methodAdd(Object, Int32)
Adds the specified filter to the global filter collection using the specified filter run order.
Public methodClear
Removes all filters from the global filter collection.
Public methodContains
Determines wheither a filter is in the global filter collection.
Public methodGetEnumerator
Public methodRemove
Removes all filters that match the specified filter.
Top
Remarks
Job filters run for every create, perform and state change of every job. All the instances in the filters collection should be thread-safe. You can register a filter using the Filters registration endpoint.
See Also