Table of Contents

Class SingleSourceDerivationBuilder

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

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

factory Func<TReq, TResp, Dictionary<string, TResult>>

Function that creates a dictionary of variant label to derived request.

Returns

RequestDerivation

Type Parameters

TReq

The source operation's request type.

TResp

The source operation's response type.

TResult

The 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

factory Func<TReq, TResp, TResult, Dictionary<string, TResult>>

Function that creates a dictionary of variant label to derived request.

Returns

RequestDerivation

Type Parameters

TReq

The source operation's request type.

TResp

The source operation's response type.

TResult

The 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

factory Func<TReq, TResp, TResult, TResult>

Function that creates the derived request from source request/response and template.

Returns

RequestDerivation

Type Parameters

TReq

The source operation's request type.

TResp

The source operation's response type.

TResult

The 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

factory Func<TReq, TResp, TResult>

Function that creates the derived request from source request/response.

Returns

RequestDerivation

Type Parameters

TReq

The source operation's request type.

TResp

The source operation's response type.

TResult

The derived request type.