Table of Contents

Class DictionaryExtensions

Namespace
Styra.Opa
Assembly
Styra.Opa.dll
public static class DictionaryExtensions
Inheritance
DictionaryExtensions
Inherited Members

Methods

ToOpaBatchErrors(Dictionary<string, ServerErrorWithStatusCode>)

public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, ServerErrorWithStatusCode> errors)

Parameters

errors Dictionary<string, ServerErrorWithStatusCode>

Returns

OpaBatchErrors

ToOpaBatchErrors(Dictionary<string, ServerError>)

public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, ServerError> errors)

Parameters

errors Dictionary<string, ServerError>

Returns

OpaBatchErrors

ToOpaBatchErrors(Dictionary<string, ServerError>)

public static OpaBatchErrors ToOpaBatchErrors(this Dictionary<string, ServerError> errors)

Parameters

errors Dictionary<string, ServerError>

Returns

OpaBatchErrors

ToOpaBatchInputRaw(Dictionary<string, Dictionary<string, object>>)

public static Dictionary<string, Input> ToOpaBatchInputRaw(this Dictionary<string, Dictionary<string, object>> inputs)

Parameters

inputs Dictionary<string, Dictionary<string, object>>

Returns

Dictionary<string, Input>

ToOpaBatchResults(Dictionary<string, SuccessfulPolicyResponse>)

public static OpaBatchResults ToOpaBatchResults(this Dictionary<string, SuccessfulPolicyResponse> responses)

Parameters

responses Dictionary<string, SuccessfulPolicyResponse>

Returns

OpaBatchResults

ToOpaBatchResults<T>(Dictionary<string, SuccessfulPolicyResponse>)

public static OpaBatchResultGeneric<T> ToOpaBatchResults<T>(this Dictionary<string, SuccessfulPolicyResponse> responses)

Parameters

responses Dictionary<string, SuccessfulPolicyResponse>

Returns

OpaBatchResultGeneric<T>

Type Parameters

T