ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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)
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>)
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
.