次の方法で共有


ExceptionSummarizationServiceCollectionExtensions.AddExceptionSummarizer メソッド

定義

オーバーロード

AddExceptionSummarizer(IServiceCollection)

例外サマライザーを依存関係挿入コンテナーに登録します。

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

例外サマライザーを依存関係挿入コンテナーに登録します。

AddExceptionSummarizer(IServiceCollection)

ソース:
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>)

ソース:
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 です。

適用対象