Table of Contents

Class ServiceProviderExtensions

Namespace
Cuemon.Extensions.AspNetCore.Diagnostics
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 IServiceProvider

The IServiceProvider to extend.

Returns

IEnumerable<IHttpExceptionDescriptorResponseFormatter>

A sequence of IHttpExceptionDescriptorResponseFormatter services.

Exceptions

ArgumentNullException

provider cannot be null.