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
editContextEditContextThe edit context whose model the errors should be mapped against.
errorsDictionary<string, CodedError[]>The coded errors, keyed by the server-provided error key.
responseHttpResponseMessageThe 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.