Table of Contents

Class RequestDerivation

Namespace
Microsoft.Accordant
Assembly
Accordant.Operations.dll

Defines how a request can be derived from another operation's request/response. Use the Derive(Dictionary<string, (object Request, object Response)>, object) class to create instances.

public class RequestDerivation
Inheritance
RequestDerivation
Inherited Members

Properties

Sources

The operation names this derivation depends on.

public IList<string> Sources { get; }

Property Value

IList<string>

Methods

Derive(Dictionary<string, (object Request, object Response)>, object)

Derives request(s) from the given source operation results.

public Dictionary<string, object> Derive(Dictionary<string, (object Request, object Response)> sources, object template = null)

Parameters

sources Dictionary<string, (object Request, object Response)>

Dictionary mapping operation name to (Request, Response) tuple.

template object

Optional template value for derivations that use templates.

Returns

Dictionary<string, object>

Dictionary mapping variant label to derived request.