Table of Contents

Class ServiceProviderExtensions

Namespace
Cuemon.Extensions.AspNetCore.Diagnostics
Assembly
Cuemon.Extensions.AspNetCore.dll

Extension methods for the System.IServiceProvider interface.

public static class ServiceProviderExtensions
Inheritance
Object
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 System.IServiceProvider to extend.

Returns

IEnumerable<IHttpExceptionDescriptorResponseFormatter>

A sequence of IHttpExceptionDescriptorResponseFormatter services.

Exceptions

System.ArgumentNullException

provider cannot be null.