Table of Contents

Delegate ProblemDetailsHttpClientOptions.ErrorMappingFactoryHandler

Namespace
MRX.UI.ErrorsAutoWiring.Http
Assembly
MRX.UI.ErrorsAutoWiring.dll

A delegate that maps coded errors from an HTTP response onto the fields of an EditContext's model.

public delegate Dictionary<FieldIdentifier, List<CodedError>> ProblemDetailsHttpClientOptions.ErrorMappingFactoryHandler(EditContext editContext, Dictionary<string, CodedError[]> errors, HttpResponseMessage response)

Parameters

editContext EditContext

The edit context whose model the errors should be mapped against.

errors Dictionary<string, CodedError[]>

The coded errors, keyed by the server-provided error key.

response HttpResponseMessage

The HTTP response the errors were extracted from.

Returns

Dictionary<FieldIdentifier, List<CodedError>>

A dictionary linking each resolved field identifier to the list of errors that apply to it.