Compartir a través de


ProblemDetailsServiceCollectionExtensions.AddProblemDetails Método

Definición

Sobrecargas

AddProblemDetails(IServiceCollection)

Agrega servicios necesarios para la creación de ProblemDetails solicitudes con error.

AddProblemDetails(IServiceCollection, Action<ProblemDetailsOptions>)

Agrega servicios necesarios para la creación de ProblemDetails solicitudes con error.

AddProblemDetails(IServiceCollection)

Source:
ProblemDetailsServiceCollectionExtensions.cs

Agrega servicios necesarios para la creación de ProblemDetails solicitudes con error.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProblemDetails (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddProblemDetails : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProblemDetails (services As IServiceCollection) As IServiceCollection

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a

AddProblemDetails(IServiceCollection, Action<ProblemDetailsOptions>)

Source:
ProblemDetailsServiceCollectionExtensions.cs

Agrega servicios necesarios para la creación de ProblemDetails solicitudes con error.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddProblemDetails (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.AspNetCore.Http.ProblemDetailsOptions>? configure);
static member AddProblemDetails : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.AspNetCore.Http.ProblemDetailsOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddProblemDetails (services As IServiceCollection, configure As Action(Of ProblemDetailsOptions)) As IServiceCollection

Parámetros

services
IServiceCollection

La interfaz IServiceCollection a la que se van a agregar los servicios.

configure
Action<ProblemDetailsOptions>

que ProblemDetailsOptions se va a configurar con los servicios.

Devoluciones

La interfaz IServiceCollection para que se puedan encadenar llamadas adicionales.

Se aplica a