Class TypedWhenBuilder<TReq, TResp, TResult>
Builder for typed derivations with a When() filter applied.
public class TypedWhenBuilder<TReq, TResp, TResult>
Type Parameters
TReqThe source operation's request type.
TRespThe source operation's response type.
TResultThe derived request type (also used as template type).
- Inheritance
-
TypedWhenBuilder<TReq, TResp, TResult>
- Inherited Members
Methods
As(Func<TReq, TResp, TResult, TResult>)
Define the derivation that creates a single request with template support when the filter passes. Returns empty (skips derivation) when the filter returns false.
public RequestDerivation As(Func<TReq, TResp, TResult, TResult> factory)
Parameters
factoryFunc<TReq, TResp, TResult, TResult>Function that creates the derived request from source request/response and template.
Returns
As(Func<TReq, TResp, TResult>)
Define the derivation that creates a single request when the filter passes. Returns empty (skips derivation) when the filter returns false.
public RequestDerivation As(Func<TReq, TResp, TResult> factory)
Parameters
factoryFunc<TReq, TResp, TResult>Function that creates the derived request from source request/response.
Returns
AsVariants(Func<TReq, TResp, Dictionary<string, TResult>>)
Define a derivation that produces multiple request variants when the filter passes. Returns empty (skips derivation) when the filter returns false.
public RequestDerivation AsVariants(Func<TReq, TResp, Dictionary<string, TResult>> factory)
Parameters
factoryFunc<TReq, TResp, Dictionary<string, TResult>>Function that creates a dictionary of variant label to derived request.
Returns
AsVariants(Func<TReq, TResp, TResult, Dictionary<string, TResult>>)
Define a derivation that produces multiple request variants with template support when the filter passes. Returns empty (skips derivation) when the filter returns false.
public RequestDerivation AsVariants(Func<TReq, TResp, TResult, Dictionary<string, TResult>> factory)
Parameters
factoryFunc<TReq, TResp, TResult, Dictionary<string, TResult>>Function that creates a dictionary of variant label to derived request.