Table of Contents

Class WorkResponseMatchExtensions

Namespace
JobFlow.Core.Rules.Dsl
Assembly
JobFlow.Core.dll

Adds a collection of additional NRule DSL methods specific to matching JobWorkResponses.

public static class WorkResponseMatchExtensions
Inheritance
object
WorkResponseMatchExtensions

Methods

WithStatus(Matcher<WorkResponse>, WorkResponseStatus)

Match against a particular WorkResponseStatus.

public static Matcher<WorkResponse> WithStatus(this Matcher<WorkResponse> matcher, WorkResponseStatus jobResultStatus)

Parameters

matcher Matcher<WorkResponse>
jobResultStatus WorkResponseStatus

WorkResponseStatus to match against.

Returns

Matcher<WorkResponse>

WithStatus<T>(Matcher<WorkResponse<T>>, WorkResponseStatus)

public static Matcher<WorkResponse<T>> WithStatus<T>(this Matcher<WorkResponse<T>> matcher, WorkResponseStatus jobResultStatus)

Parameters

matcher Matcher<WorkResponse<T>>
jobResultStatus WorkResponseStatus

Returns

Matcher<WorkResponse<T>>

Type Parameters

T