HttpExceptionDescriptorResponseHandler Constructor
Definition
- Namespace
- Cuemon.AspNetCore.Diagnostics
- Assemblies
- Cuemon.AspNetCore.dll
HttpExceptionDescriptorResponseHandler(MediaTypeHeaderValue, Func<HttpExceptionDescriptor, HttpResponseMessage>)
Initializes a new instance of the HttpExceptionDescriptorResponseHandler class.
public HttpExceptionDescriptorResponseHandler(MediaTypeHeaderValue contentType, Func<HttpExceptionDescriptor, HttpResponseMessage> responseMessageFactory)
Parameters
contentTypeMediaTypeHeaderValueThe media type that this handler supports.
responseMessageFactoryFunc<HttpExceptionDescriptor, HttpResponseMessage>The function delegate that produces the HttpResponseMessage.
Exceptions
- ArgumentNullException
contentTypecannot be null -or-responseMessageFactorycannot be null.