Class JobMatchExtensions
Adds a collection of additional NRule DSL methods specific to matching Jobs.
public static class JobMatchExtensions
- Inheritance
-
JobMatchExtensions
Methods
IsStart(Matcher<JobModel>)
Match against the "start" Job. Equivalent to WithNames(GlobalJobNames.Start).
public static Matcher<JobModel> IsStart(this Matcher<JobModel> matcher)
Parameters
Returns
WithNames(Matcher<JobModel>, params string[])
Match against any of the provided Job names.
public static Matcher<JobModel> WithNames(this Matcher<JobModel> matcher, params string[] names)
Parameters
Returns
WithResponse(Matcher<JobModel>, Action<Matcher<WorkResponse>>)
public static Matcher<JobModel> WithResponse(this Matcher<JobModel> matcher, Action<Matcher<WorkResponse>> responseAction)
Parameters
matcher
Matcher<JobModel>responseAction
Action<Matcher<WorkResponse>>
Returns
WithResponse(Matcher<JobModel>, Expression<Func<WorkResponse>>, Action<Matcher<WorkResponse>>)
public static Matcher<JobModel> WithResponse(this Matcher<JobModel> matcher, Expression<Func<WorkResponse>> alias, Action<Matcher<WorkResponse>> responseAction)
Parameters
matcher
Matcher<JobModel>alias
Expression<Func<WorkResponse>>responseAction
Action<Matcher<WorkResponse>>
Returns
WithStatus(Matcher<JobModel>, JobStatus)
Match against Jobs with a particular JobStatus.
public static Matcher<JobModel> WithStatus(this Matcher<JobModel> matcher, JobStatus jobStatus)