Class GroupMatcher<TKey>
- Namespace
- Quartz
- Assembly
- Quartz.dll
Matches on group (ignores name) property of Keys.
public sealed class GroupMatcher<TKey> : StringMatcher<TKey>, IMatcher<TKey> where TKey : Key<TKey>
Type Parameters
TKey
- Inheritance
-
StringMatcher<TKey>GroupMatcher<TKey>
- Implements
-
IMatcher<TKey>
- Inherited Members
- Extension Methods
Methods
AnyGroup()
Create a GroupMatcher that matches all.
public static GroupMatcher<TKey> AnyGroup()
Returns
- GroupMatcher<TKey>
Remarks
The one "match everything" that a nullable filter cannot replace: PauseJobGroups(GroupMatcher<JobKey>, CancellationToken), DeleteJobs(GroupMatcher<JobKey>, CancellationToken) and their kind take a GroupMatcher<TKey> and not a null, so this is how a caller says "every group" to them. Where the filter is a nullable property — every PagedQuery — null already says it, which is why NameMatcher<TKey> has no twin of this.
GetValue(TKey)
The part of the key this matcher compares — its name, or its group.
protected override string GetValue(TKey key)
Parameters
keyTKey
Returns
GroupContains(string)
Create a GroupMatcher that matches groups containing the given string.
public static GroupMatcher<TKey> GroupContains(string compareTo)
Parameters
compareTostring
Returns
- GroupMatcher<TKey>
GroupEndsWith(string)
Create a GroupMatcher that matches groups ending with the given string.
public static GroupMatcher<TKey> GroupEndsWith(string compareTo)
Parameters
compareTostring
Returns
- GroupMatcher<TKey>
GroupEquals(string)
Create a GroupMatcher that matches groups equaling the given string.
public static GroupMatcher<TKey> GroupEquals(string compareTo)
Parameters
compareTostring
Returns
- GroupMatcher<TKey>
GroupStartsWith(string)
Create a GroupMatcher that matches groups starting with the given string.
public static GroupMatcher<TKey> GroupStartsWith(string compareTo)
Parameters
compareTostring
Returns
- GroupMatcher<TKey>