Bagikan melalui


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer Metode

Definisi

Overload

AddExceptionSummarizer(IServiceCollection)

Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi.

AddExceptionSummarizer(IServiceCollection)

Sumber:
ExceptionSummarizationServiceCollectionExtensions.cs

Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi.

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

Parameter

services
IServiceCollection

Kontainer injeksi dependensi untuk menambahkan summarizer.

Mengembalikan

Nilai dari services.

Pengecualian

servicesadalah null.

Berlaku untuk

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Sumber:
ExceptionSummarizationServiceCollectionExtensions.cs

Mendaftarkan ringkasan pengecualian ke dalam kontainer injeksi dependensi.

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

Parameter

services
IServiceCollection

Kontainer injeksi dependensi untuk menambahkan summarizer.

configure
Action<IExceptionSummarizationBuilder>

Delegasi yang mengonfigurasi kumpulan penyedia ringkasan terdaftar.

Mengembalikan

Nilai dari services.

Pengecualian

services atau configure adalah null.

Berlaku untuk