ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Método

Definição

Sobrecargas

AddExceptionSummarizer(IServiceCollection)

Registra um resumo de exceção em um contêiner de injeção de dependência.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Registra um resumo de exceção em um contêiner de injeção de dependência.

AddExceptionSummarizer(IServiceCollection)

Origem:
ExceptionSummarizationServiceCollectionExtensions.cs
Origem:
ExceptionSummarizationServiceCollectionExtensions.cs

Registra um resumo de exceção em um contêiner de injeção de dependência.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddExceptionSummarizer(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionSummarizer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddExceptionSummarizer : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddExceptionSummarizer (services As IServiceCollection) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar o resumo.

Retornos

O valor de services.

Exceções

services é null.

Aplica-se a

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Origem:
ExceptionSummarizationServiceCollectionExtensions.cs
Origem:
ExceptionSummarizationServiceCollectionExtensions.cs

Registra um resumo de exceção em um contêiner de injeção de dependência.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::DependencyInjection::IServiceCollection ^ AddExceptionSummarizer(Microsoft::Extensions::DependencyInjection::IServiceCollection ^ services, Action<Microsoft::Extensions::Diagnostics::ExceptionSummarization::IExceptionSummarizationBuilder ^> ^ configure);
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddExceptionSummarizer (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder> configure);
static member AddExceptionSummarizer : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Extensions.Diagnostics.ExceptionSummarization.IExceptionSummarizationBuilder> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddExceptionSummarizer (services As IServiceCollection, configure As Action(Of IExceptionSummarizationBuilder)) As IServiceCollection

Parâmetros

services
IServiceCollection

O contêiner de injeção de dependência ao qual adicionar o resumo.

configure
Action<IExceptionSummarizationBuilder>

Delegados que configuram o conjunto de provedores de resumo registrados.

Retornos

O valor de services.

Exceções

services ou configure é null.

Aplica-se a