다음을 통해 공유


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer 메서드

정의

오버로드

AddExceptionSummarizer(IServiceCollection)

종속성 주입 컨테이너에 예외 요약 도우미를 등록합니다.

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

종속성 주입 컨테이너에 예외 요약 도우미를 등록합니다.

AddExceptionSummarizer(IServiceCollection)

Source:
ExceptionSummarizationServiceCollectionExtensions.cs
Source:
ExceptionSummarizationServiceCollectionExtensions.cs

종속성 주입 컨테이너에 예외 요약 도우미를 등록합니다.

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

매개 변수

services
IServiceCollection

요약 도우미를 추가할 종속성 주입 컨테이너입니다.

반환

services의 값

예외

servicesnull입니다.

적용 대상

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

Source:
ExceptionSummarizationServiceCollectionExtensions.cs
Source:
ExceptionSummarizationServiceCollectionExtensions.cs

종속성 주입 컨테이너에 예외 요약 도우미를 등록합니다.

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

매개 변수

services
IServiceCollection

요약 도우미를 추가할 종속성 주입 컨테이너입니다.

configure
Action<IExceptionSummarizationBuilder>

등록된 요약 공급자 집합을 구성하는 대리자입니다.

반환

services의 값

예외

services 또는 configurenull인 경우

적용 대상