Class JobMatchExtensions
Adds a collection of additional NRule DSL methods specific to matching Jobs.
public static class JobMatchExtensions
- Inheritance
-
objectJobMatchExtensions
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
WithResponse<T>(Matcher<JobModel>, Action<Matcher<WorkResponse<T>>>)
public static Matcher<JobModel> WithResponse<T>(this Matcher<JobModel> matcher, Action<Matcher<WorkResponse<T>>> responseAction)
Parameters
matcher
Matcher<JobModel>responseAction
Action<Matcher<WorkResponse<T>>>
Returns
Type Parameters
T
WithResponse<T>(Matcher<JobModel>, Expression<Func<WorkResponse<T>>>, Action<Matcher<WorkResponse<T>>>)
public static Matcher<JobModel> WithResponse<T>(this Matcher<JobModel> matcher, Expression<Func<WorkResponse<T>>> alias, Action<Matcher<WorkResponse<T>>> responseAction)
Parameters
matcher
Matcher<JobModel>alias
Expression<Func<WorkResponse<T>>>responseAction
Action<Matcher<WorkResponse<T>>>
Returns
Type Parameters
T
WithStatus(Matcher<JobModel>, JobStatus)
Match against Jobs with a particular JobStatus.
public static Matcher<JobModel> WithStatus(this Matcher<JobModel> matcher, JobStatus jobStatus)