Class ServiceProviderExtensions
- Assembly
- Cuemon.Extensions.AspNetCore.dll
Extension methods for the IServiceProvider interface.
public static class ServiceProviderExtensions
- Inheritance
-
ServiceProviderExtensions
Methods
GetExceptionResponseFormatters(IServiceProvider)
Retrieves a sequence of IHttpExceptionDescriptorResponseFormatter services from the specified provider
.
public static IEnumerable<IHttpExceptionDescriptorResponseFormatter> GetExceptionResponseFormatters(this IServiceProvider provider)
Parameters
provider
IServiceProviderThe IServiceProvider to extend.
Returns
- IEnumerable<IHttpExceptionDescriptorResponseFormatter>
A sequence of IHttpExceptionDescriptorResponseFormatter services.
Exceptions
- ArgumentNullException
provider
cannot be null.