Udostępnij za pośrednictwem


DefaultProblemDetailsFactory Konstruktor

Definicja

Inicjuje nowe wystąpienie klasy DefaultProblemDetailsFactory.

public DefaultProblemDetailsFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.ApiBehaviorOptions> options, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.ProblemDetailsOptions>? problemDetailsOptions = default);
new Microsoft.AspNetCore.Mvc.Infrastructure.DefaultProblemDetailsFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.ApiBehaviorOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.ProblemDetailsOptions> -> Microsoft.AspNetCore.Mvc.Infrastructure.DefaultProblemDetailsFactory
Public Sub New (options As IOptions(Of ApiBehaviorOptions), Optional problemDetailsOptions As IOptions(Of ProblemDetailsOptions) = Nothing)

Parametry

options
IOptions<ApiBehaviorOptions>

Opcje zachowania interfejsu API.

problemDetailsOptions
IOptions<ProblemDetailsOptions>

Opcje dostosowywania szczegółów problemu.

Dotyczy