Compartir a través de


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Método

Definición

Sobrecargas

AddExceptionSummarizer(IServiceCollection)

Registra un generador de resumen de excepciones en un contenedor de inserción de dependencias.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Registra un generador de resumen de excepciones en un contenedor de inserción de dependencias.

AddExceptionSummarizer(IServiceCollection)

Source:
ExceptionSummarizationServiceCollectionExtensions.cs

Registra un generador de resumen de excepciones en un contenedor de inserción de dependencias.

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

Contenedor de inserción de dependencias al que se va a agregar el generador de resumen.

Devoluciones

El valor de services.

Excepciones

services es null.

Se aplica a

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Source:
ExceptionSummarizationServiceCollectionExtensions.cs

Registra un generador de resumen de excepciones en un contenedor de inserción de dependencias.

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

Contenedor de inserción de dependencias al que se va a agregar el generador de resumen.

configure
Action<IExceptionSummarizationBuilder>

Delegados que configuran el conjunto de proveedores de resumen registrados.

Devoluciones

El valor de services.

Excepciones

services o configure es null.

Se aplica a