Class SingleSourceDerivationBuilder
Builder for single-source derivations (legacy API - types specified on As()).
public class SingleSourceDerivationBuilder
- Inheritance
-
SingleSourceDerivationBuilder
- Inherited Members
Methods
AsVariants<TReq, TResp, TResult>(Func<TReq, TResp, Dictionary<string, TResult>>)
Define a derivation that produces multiple request variants (no template). Use this for cases like generating both IfMatch and IfNoneMatch requests, or return an empty dictionary to skip derivation.
public RequestDerivation AsVariants<TReq, TResp, TResult>(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
Type Parameters
TReqThe source operation's request type.
TRespThe source operation's response type.
TResultThe derived request type.
AsVariants<TReq, TResp, TResult>(Func<TReq, TResp, TResult, Dictionary<string, TResult>>)
Define a derivation that produces multiple request variants with template support.
public RequestDerivation AsVariants<TReq, TResp, TResult>(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.
Returns
Type Parameters
TReqThe source operation's request type.
TRespThe source operation's response type.
TResultThe derived request type (also used as template type).
As<TReq, TResp, TResult>(Func<TReq, TResp, TResult, TResult>)
Define the derivation that creates a single request with template support. The template is provided externally via RequestTemplates.
public RequestDerivation As<TReq, TResp, TResult>(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
Type Parameters
TReqThe source operation's request type.
TRespThe source operation's response type.
TResultThe derived request type (also used as template type).
As<TReq, TResp, TResult>(Func<TReq, TResp, TResult>)
Define the derivation that creates a single request (no template).
public RequestDerivation As<TReq, TResp, TResult>(Func<TReq, TResp, TResult> factory)
Parameters
factoryFunc<TReq, TResp, TResult>Function that creates the derived request from source request/response.
Returns
Type Parameters
TReqThe source operation's request type.
TRespThe source operation's response type.
TResultThe derived request type.