ServiceCollection クラス

定義

IServiceCollection の既定の実装。

public ref class ServiceCollection : Microsoft::Extensions::DependencyInjection::IServiceCollection, System::Collections::Generic::ICollection<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IEnumerable<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>, System::Collections::Generic::IList<Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^>
public class ServiceCollection : Microsoft.Extensions.DependencyInjection.IServiceCollection, System.Collections.Generic.ICollection<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IEnumerable<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>, System.Collections.Generic.IList<Microsoft.Extensions.DependencyInjection.ServiceDescriptor>
type ServiceCollection = class
    interface IServiceCollection
    interface IList<ServiceDescriptor>
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
type ServiceCollection = class
    interface IServiceCollection
    interface ICollection<ServiceDescriptor>
    interface seq<ServiceDescriptor>
    interface IEnumerable
    interface IList<ServiceDescriptor>
Public Class ServiceCollection
Implements ICollection(Of ServiceDescriptor), IEnumerable(Of ServiceDescriptor), IList(Of ServiceDescriptor), IServiceCollection
継承
ServiceCollection
実装

コンストラクター

ServiceCollection()

ServiceCollection クラスの新しいインスタンスを初期化します。

プロパティ

Count

ICollection<T> に格納されている要素の数を取得します。

IsReadOnly

ICollection<T> が読み取り専用かどうかを示す値を取得します。

Item[Int32]

指定したインデックスにある要素を取得または設定します。

メソッド

Clear()

ICollection<T> からすべての項目を削除します。

Contains(ServiceDescriptor)

ICollection<T> に特定の値が格納されているかどうかを判断します。

CopyTo(ServiceDescriptor[], Int32)

ICollection<T> の要素を Array にコピーします。Array の特定のインデックスからコピーが開始されます。

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetEnumerator()

コレクションを反復処理する列挙子を返します。

GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
IndexOf(ServiceDescriptor)

IList<T> 内の特定の項目のインデックスを確認します。

Insert(Int32, ServiceDescriptor)

指定したインデックスの IList<T> に項目を挿入します。

MakeReadOnly()

このコレクションを読み取り専用にします。

MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
Remove(ServiceDescriptor)

特定のオブジェクトが ICollection<T> 内にあるときに、最初に出現したものを削除します。

RemoveAt(Int32)

指定したインデックスにある IList<T> 項目を削除します。

ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

明示的なインターフェイスの実装

ICollection<ServiceDescriptor>.Add(ServiceDescriptor)

ICollection<T> に項目を追加します。

IEnumerable.GetEnumerator()

コレクションを反復処理する列挙子を返します。

拡張メソッド

AddServiceLogEnricher(IServiceCollection)

サービス エンリッチャーのインスタンスを に追加します IServiceCollection

AddServiceLogEnricher(IServiceCollection, IConfigurationSection)

サービス エンリッチャーのインスタンスを に追加します IServiceCollection

AddServiceLogEnricher(IServiceCollection, Action<ApplicationLogEnricherOptions>)

サービス エンリッチャーのインスタンスを に追加します IServiceCollection

AddApplicationMetadata(IServiceCollection, IConfigurationSection)

のインスタンス ApplicationMetadata を依存関係挿入コンテナーに追加します。

AddApplicationMetadata(IServiceCollection, Action<ApplicationMetadata>)

のインスタンス ApplicationMetadata を依存関係挿入コンテナーに追加します。

AddAsyncState(IServiceCollection)

、、および サービスの既定のIAsyncStateIAsyncContext<T>実装をMicrosoft.Extensions.AsyncState.IAsyncLocalContext`1追加します。 これらのインターフェイスの実装はスレッド セーフではないことに注意してください。

ActivateKeyedSingleton(IServiceCollection, Type, Object)

実行時ではなく、起動時にキー付きシングルトンアクティブ化を適用します。

ActivateKeyedSingleton<TService>(IServiceCollection, Object)

実行時ではなく、起動時にキー付きシングルトンアクティブ化を適用します。

ActivateSingleton(IServiceCollection, Type)

実行時ではなく、起動時にシングルトンアクティブ化を適用します。

ActivateSingleton<TService>(IServiceCollection)

実行時ではなく、起動時にシングルトンアクティブ化を適用します。

AddActivatedKeyedSingleton(IServiceCollection, Type, Object)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedKeyedSingleton(IServiceCollection, Type, Object, Type)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedKeyedSingleton<TService>(IServiceCollection, Object)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedKeyedSingleton<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

自動アクティブ化されたキー付きシングルトン サービスを追加します。

AddActivatedSingleton(IServiceCollection, Type)

serviceType で指定された型の自動アクティブ化シングルトン サービスを、指定した に追加します IServiceCollection

AddActivatedSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

自動アクティブ化されたシングルトン サービスを追加します。

AddActivatedSingleton(IServiceCollection, Type, Type)

自動アクティブ化されたシングルトン サービスを追加します。

AddActivatedSingleton<TService>(IServiceCollection)

自動アクティブ化されたシングルトン サービスを追加します。

AddActivatedSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

自動アクティブ化されたシングルトン サービスを追加します。

AddActivatedSingleton<TService,TImplementation>(IServiceCollection)

自動アクティブ化されたシングルトン サービスを追加します。

AddActivatedSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

自動アクティブ化されたシングルトン サービスを追加します。

TryAddActivatedKeyedSingleton(IServiceCollection, Type, Object)

自動アクティブ化されたキー付きシングルトン サービスの追加を試みます。

TryAddActivatedKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

自動アクティブ化されたキー付きシングルトン サービスの追加を試みます。

TryAddActivatedKeyedSingleton(IServiceCollection, Type, Object, Type)

自動アクティブ化されたキー付きシングルトン サービスの追加を試みます。

TryAddActivatedKeyedSingleton<TService>(IServiceCollection, Object)

自動アクティブ化されたキー付きシングルトン サービスの追加を試みます。

TryAddActivatedKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

自動アクティブ化されたキー付きシングルトン サービスの追加を試みます。

TryAddActivatedKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

自動アクティブ化されたキー付きシングルトン サービスの追加を試みます。

TryAddActivatedSingleton(IServiceCollection, Type)

自動アクティブ化されたシングルトン サービスの追加を試みます。

TryAddActivatedSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

自動アクティブ化されたシングルトン サービスの追加を試みます。

TryAddActivatedSingleton(IServiceCollection, Type, Type)

自動アクティブ化されたシングルトン サービスの追加を試みます。

TryAddActivatedSingleton<TService>(IServiceCollection)

自動アクティブ化されたシングルトン サービスの追加を試みます。

TryAddActivatedSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

自動アクティブ化されたシングルトン サービスの追加を試みます。

TryAddActivatedSingleton<TService,TImplementation>(IServiceCollection)

自動アクティブ化されたシングルトン サービスの追加を試みます。

AddTelemetryHealthCheckPublisher(IServiceCollection)

アプリケーションの正常性を表すテレメトリを出力する正常性チェック発行元を登録します。

AddTelemetryHealthCheckPublisher(IServiceCollection, IConfigurationSection)

アプリケーションの正常性を表すテレメトリを出力する正常性チェック発行元を登録します。

AddTelemetryHealthCheckPublisher(IServiceCollection, Action<TelemetryHealthCheckPublisherOptions>)

アプリケーションの正常性を表すテレメトリを出力する正常性チェック発行元を登録します。

AddContextualOptions(IServiceCollection)

コンテキスト オプションを使用するために必要なサービスを追加します。

Configure<TOptions>(IServiceCollection, Action<IOptionsContext,TOptions>)

特定の型のオプションを構成するために使用されるアクションを登録します。

Configure<TOptions>(IServiceCollection, Func<IOptionsContext,CancellationToken,ValueTask<IConfigureContextualOptions<TOptions>>>)

特定の型のオプションを構成するために使用されるアクションを登録します。

Configure<TOptions>(IServiceCollection, String, Action<IOptionsContext,TOptions>)

特定の型のオプションを構成するために使用されるアクションを登録します。

Configure<TOptions>(IServiceCollection, String, Func<IOptionsContext,CancellationToken,ValueTask<IConfigureContextualOptions<TOptions>>>)

特定の型のオプションを構成するために使用されるアクションを登録します。

PostConfigure<TOptions>(IServiceCollection, Action<IOptionsContext,TOptions>)

特定の型のオプションを初期化するために使用されるアクションを登録します。

PostConfigure<TOptions>(IServiceCollection, String, Action<IOptionsContext,TOptions>)

特定の型のオプションを初期化するために使用されるアクションを登録します。

PostConfigureAll<TOptions>(IServiceCollection, Action<IOptionsContext,TOptions>)

特定の種類のオプションのすべてのインスタンスを初期化するために使用されるアクションを登録します。

ValidateContextualOptions<TOptions>(IServiceCollection, Func<TOptions,Boolean>, String)

オプションの型の検証アクションを登録します。

ValidateContextualOptions<TOptions>(IServiceCollection, String, Func<TOptions,Boolean>, String)

オプションの型の検証アクションを登録します。

AddWebEncoders(IServiceCollection)

指定の servicesHtmlEncoderJavaScriptEncoderUrlEncoder を追加します。

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

指定の servicesHtmlEncoderJavaScriptEncoderUrlEncoder を追加します。

AddLogEnricher(IServiceCollection, ILogEnricher)

ログ エンリッチャー インスタンスを登録します。

AddLogEnricher<T>(IServiceCollection)

ログ エンリッチャーの種類を登録します。

AddStaticLogEnricher(IServiceCollection, IStaticLogEnricher)

静的ログ エンリッチャー インスタンスを登録します。

AddStaticLogEnricher<T>(IServiceCollection)

静的ログ エンリッチャーの種類を登録します。

AddExceptionSummarizer(IServiceCollection)

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

AddExceptionSummarizer(IServiceCollection, Action<IExceptionSummarizationBuilder>)

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

Add(IServiceCollection, ServiceDescriptor)

指定した descriptorcollection に追加します。

Add(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceDescriptor のシーケンスを collection に追加します。

RemoveAll(IServiceCollection, Type)

種類が serviceType のサービスをすべて IServiceCollection で削除します。

RemoveAll<T>(IServiceCollection)

種類が T のサービスをすべて IServiceCollection で削除します。

RemoveAllKeyed(IServiceCollection, Type, Object)

種類が serviceType のサービスをすべて collection で削除します。

RemoveAllKeyed<T>(IServiceCollection, Object)

種類が T のサービスをすべて collection で削除します。

Replace(IServiceCollection, ServiceDescriptor)

サービスの種類が descriptor と同じ最初のサービスを IServiceCollection で削除し、コレクションに descriptor を追加します。

TryAdd(IServiceCollection, ServiceDescriptor)

サービスの種類がまだ登録されていない場合、指定の descriptorcollection に追加します。

TryAdd(IServiceCollection, IEnumerable<ServiceDescriptor>)

サービスの種類がまだ登録されていない場合、指定の descriptorscollection に追加します。

TryAddEnumerable(IServiceCollection, ServiceDescriptor)

ServiceType を同じくする既存の記述子と services にまだ存在しない実装の場合、ServiceDescriptor を追加します。

TryAddEnumerable(IServiceCollection, IEnumerable<ServiceDescriptor>)

ServiceType を同じくする既存の記述子と services にまだ存在しない実装の場合、指定の ServiceDescriptor を追加します。

TryAddKeyedScoped(IServiceCollection, Type, Object)

サービスの種類がまだ登録されていない場合、指定の serviceScoped サービスとして collection に追加します。

TryAddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

サービスの種類がまだ登録されていない場合、指定の serviceScoped サービスとして、implementationFactory に指定されているファクトリを利用し、collection に追加します。

TryAddKeyedScoped(IServiceCollection, Type, Object, Type)

サービスの種類がまだ登録されていない場合、指定の serviceScoped サービスとして implementationType 実装で collection に追加します。

TryAddKeyedScoped<TService>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合、指定の TServiceScoped サービスとして collection に追加します。

TryAddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

サービスの種類がまだ登録されていない場合、指定の TServiceScoped サービスとして、implementationFactory に指定されているファクトリを利用し、services に追加します。

TryAddKeyedScoped<TService,TImplementation>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合、指定の TServiceScoped サービスとして、TImplementation に指定されている実装の種類を利用し、collection に追加します。

TryAddKeyedSingleton(IServiceCollection, Type, Object)

サービスの種類がまだ登録されていない場合、指定の serviceSingleton サービスとして collection に追加します。

TryAddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

サービスの種類がまだ登録されていない場合、指定の serviceSingleton サービスとして、implementationFactory に指定されているファクトリを利用し、collection に追加します。

TryAddKeyedSingleton(IServiceCollection, Type, Object, Type)

サービスの種類がまだ登録されていない場合、指定の serviceSingleton サービスとして implementationType 実装で collection に追加します。

TryAddKeyedSingleton<TService>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして collection に追加します。

TryAddKeyedSingleton<TService>(IServiceCollection, Object, TService)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして、instance に指定されているインスタンスを利用し、collection に追加します。

TryAddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして、implementationFactory に指定されているファクトリを利用し、services に追加します。

TryAddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして、TImplementation に指定されている実装の種類を利用し、collection に追加します。

TryAddKeyedTransient(IServiceCollection, Type, Object)

サービスの種類がまだ登録されていない場合、指定の serviceTransient サービスとして collection に追加します。

TryAddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

サービスの種類がまだ登録されていない場合、指定の serviceTransient サービスとして、implementationFactory に指定されているファクトリを利用し、collection に追加します。

TryAddKeyedTransient(IServiceCollection, Type, Object, Type)

サービスの種類がまだ登録されていない場合、指定の serviceTransient サービスとして implementationType 実装で collection に追加します。

TryAddKeyedTransient<TService>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合、指定の TServiceTransient サービスとして collection に追加します。

TryAddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

サービスの種類がまだ登録されていない場合、指定の TServiceTransient サービスとして、implementationFactory に指定されているファクトリを利用し、services に追加します。

TryAddKeyedTransient<TService,TImplementation>(IServiceCollection, Object)

サービスの種類がまだ登録されていない場合、指定の TServiceTransient サービスとして、TImplementation に指定されている実装の種類を利用し、collection に追加します。

TryAddScoped(IServiceCollection, Type)

サービスの種類がまだ登録されていない場合、指定の serviceScoped サービスとして collection に追加します。

TryAddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

サービスの種類がまだ登録されていない場合、指定の serviceScoped サービスとして、implementationFactory に指定されているファクトリを利用し、collection に追加します。

TryAddScoped(IServiceCollection, Type, Type)

サービスの種類がまだ登録されていない場合、指定の serviceScoped サービスとして implementationType 実装で collection に追加します。

TryAddScoped<TService>(IServiceCollection)

サービスの種類がまだ登録されていない場合、指定の TServiceScoped サービスとして collection に追加します。

TryAddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

サービスの種類がまだ登録されていない場合、指定の TServiceScoped サービスとして、implementationFactory に指定されているファクトリを利用し、services に追加します。

TryAddScoped<TService,TImplementation>(IServiceCollection)

サービスの種類がまだ登録されていない場合、指定の TServiceScoped サービスとして、TImplementation に指定されている実装の種類を利用し、collection に追加します。

TryAddSingleton(IServiceCollection, Type)

サービスの種類がまだ登録されていない場合、指定の serviceSingleton サービスとして collection に追加します。

TryAddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

サービスの種類がまだ登録されていない場合、指定の serviceSingleton サービスとして、implementationFactory に指定されているファクトリを利用し、collection に追加します。

TryAddSingleton(IServiceCollection, Type, Type)

サービスの種類がまだ登録されていない場合、指定の serviceSingleton サービスとして implementationType 実装で collection に追加します。

TryAddSingleton<TService>(IServiceCollection)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして collection に追加します。

TryAddSingleton<TService>(IServiceCollection, TService)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして、instance に指定されているインスタンスを利用し、collection に追加します。

TryAddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして、implementationFactory に指定されているファクトリを利用し、services に追加します。

TryAddSingleton<TService,TImplementation>(IServiceCollection)

サービスの種類がまだ登録されていない場合、指定の TServiceSingleton サービスとして、TImplementation に指定されている実装の種類を利用し、collection に追加します。

TryAddTransient(IServiceCollection, Type)

サービスの種類がまだ登録されていない場合、指定の serviceTransient サービスとして collection に追加します。

TryAddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

サービスの種類がまだ登録されていない場合、指定の serviceTransient サービスとして、implementationFactory に指定されているファクトリを利用し、collection に追加します。

TryAddTransient(IServiceCollection, Type, Type)

サービスの種類がまだ登録されていない場合、指定の serviceTransient サービスとして implementationType 実装で collection に追加します。

TryAddTransient<TService>(IServiceCollection)

サービスの種類がまだ登録されていない場合、指定の TServiceTransient サービスとして collection に追加します。

TryAddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

サービスの種類がまだ登録されていない場合、指定の TServiceTransient サービスとして、implementationFactory に指定されているファクトリを利用し、services に追加します。

TryAddTransient<TService,TImplementation>(IServiceCollection)

サービスの種類がまだ登録されていない場合、指定の TServiceTransient サービスとして、TImplementation に指定されている実装の種類を利用し、collection に追加します。

AddFakeLogging(IServiceCollection)

既定のオプションを使用して偽のログ記録を構成します。

AddFakeLogging(IServiceCollection, IConfigurationSection)

偽のログ記録を構成します。

AddFakeLogging(IServiceCollection, Action<FakeLogCollectorOptions>)

偽のログ記録を構成します。

AddFakeRedaction(IServiceCollection)

常に偽の redactor インスタンスを返す偽の redactor プロバイダーを登録します。

AddFakeRedaction(IServiceCollection, Action<FakeRedactorOptions>)

常に偽の redactor インスタンスを返す偽の redactor プロバイダーを登録します。

AddHealthChecks(IServiceCollection)

正常性チェックを登録するために与えられたデリゲートを利用し、コンテナーに HealthCheckService を追加します。

AddHttpClient(IServiceCollection)

IHttpClientFactory と関連サービスを IServiceCollection に追加します。

AddHttpClient(IServiceCollection, String)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、名前付き HttpClient を構成します。

AddHttpClient(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、名前付き HttpClient を構成します。

AddHttpClient(IServiceCollection, String, Action<HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、名前付き HttpClient を構成します。

AddHttpClient<TClient>(IServiceCollection)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient のフル ネームに設定されます。

AddHttpClient<TClient>(IServiceCollection, Action<IServiceProvider,HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient の型名に設定されます。

AddHttpClient<TClient>(IServiceCollection, Action<HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient の型名に設定されます。

AddHttpClient<TClient>(IServiceCollection, String)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient>(IServiceCollection, String, Action<HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient,TImplementation>(IServiceCollection)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient の型名に設定されます。

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<IServiceProvider,HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient の型名に設定されます。

AddHttpClient<TClient,TImplementation>(IServiceCollection, Action<HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient の型名に設定されます。

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,TImplementation>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient,TImplementation>(IServiceCollection, Func<HttpClient,IServiceProvider,TImplementation>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient,TImplementation>(IServiceCollection, String)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。 クライアント名は TClient の型名に設定されます。

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<IServiceProvider,HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Action<HttpClient>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,TImplementation>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

AddHttpClient<TClient,TImplementation>(IServiceCollection, String, Func<HttpClient,IServiceProvider,TImplementation>)

IHttpClientFactory と関連サービスを IServiceCollection に追加し、TClient 型と名前付き HttpClient の間でバインドを構成します。

ConfigureHttpClientDefaults(IServiceCollection, Action<IHttpClientBuilder>)

すべての HttpClient インスタンスを構成するために使用されるデリゲートを追加します。

AddHttpClientLatencyTelemetry(IServiceCollection)

DelegatingHandler待機時間情報を収集し、すべての http クライアントの送信要求ログを強化する を追加します。

AddHttpClientLatencyTelemetry(IServiceCollection, IConfigurationSection)

DelegatingHandler待機時間情報を収集し、すべての http クライアントの送信要求ログを強化する を追加します。

AddHttpClientLatencyTelemetry(IServiceCollection, Action<HttpClientLatencyTelemetryOptions>)

DelegatingHandler待機時間情報を収集し、すべての http クライアントの送信要求ログを強化する を追加します。

AddExtendedHttpClientLogging(IServiceCollection)

IHttpClientAsyncLogger 使用して作成されたすべての HTTP クライアントの送信要求のログを出力 IHttpClientFactoryする を追加します。

AddExtendedHttpClientLogging(IServiceCollection, IConfigurationSection)

IHttpClientAsyncLogger 使用して作成されたすべての HTTP クライアントの送信要求のログを出力 IHttpClientFactoryする を追加します。

AddExtendedHttpClientLogging(IServiceCollection, Action<LoggingOptions>)

IHttpClientAsyncLogger 使用して作成されたすべての HTTP クライアントの送信要求のログを出力 IHttpClientFactoryする を追加します。

AddHttpClientLogEnricher<T>(IServiceCollection)

のエンリッチャー インスタンス T を に追加して IServiceCollection 、ログをエンリッチ HttpClient します。

AddDownstreamDependencyMetadata(IServiceCollection, IDownstreamDependencyMetadata)

依存関係メタデータを追加します。

AddDownstreamDependencyMetadata<T>(IServiceCollection)

依存関係メタデータを追加します。

AddKubernetesProbes(IServiceCollection)

既定のオプションを使用して、ライブネス、スタートアップ、および準備プローブを登録します。

AddKubernetesProbes(IServiceCollection, IConfigurationSection)

構成されたオプションを使用して、ライブネス、スタートアップ、および準備プローブを登録します。

AddKubernetesProbes(IServiceCollection, Action<KubernetesProbesOptions>)

構成されたオプションを使用して、ライブネス、スタートアップ、および準備プローブを登録します。

AddConsoleLatencyDataExporter(IServiceCollection)

コンソールの待機時間データ エクスポーターを追加します。

AddConsoleLatencyDataExporter(IServiceCollection, IConfigurationSection)

コンソールの待機時間データ エクスポーターを追加します。

AddConsoleLatencyDataExporter(IServiceCollection, Action<LatencyConsoleOptions>)

コンソールの待機時間データ エクスポーターを追加します。

AddLatencyContext(IServiceCollection)

待機時間コンテキストを追加します。

AddLatencyContext(IServiceCollection, IConfigurationSection)

待機時間コンテキストを追加します。

AddLatencyContext(IServiceCollection, Action<LatencyContextOptions>)

待機時間コンテキストを追加します。

RegisterCheckpointNames(IServiceCollection, String[])

待機時間コンテキストのチェックポイント名のセットを登録します。

RegisterMeasureNames(IServiceCollection, String[])

待機時間コンテキストのメジャー名のセットを登録します。

RegisterTagNames(IServiceCollection, String[])

待機時間コンテキストのタグ名のセットを登録します。

AddLocalization(IServiceCollection)

アプリケーションのローカライズに必要なサービスを追加します。

AddLocalization(IServiceCollection, Action<LocalizationOptions>)

アプリケーションのローカライズに必要なサービスを追加します。

AddLogging(IServiceCollection)

指定の IServiceCollection にログ サービスを追加します。

AddLogging(IServiceCollection, Action<ILoggingBuilder>)

指定の IServiceCollection にログ サービスを追加します。

AddDistributedMemoryCache(IServiceCollection)

メモリに項目を格納する IDistributedCache の既定の実装を IServiceCollection に追加します。 動作に分散キャッシュを必要とするフレームワークでは、その依存関係一覧の一部としてこの依存関係を安全に追加し、実装が少なくとも 1 つ利用できるように手配できます。

AddDistributedMemoryCache(IServiceCollection, Action<MemoryDistributedCacheOptions>)

メモリに項目を格納する IDistributedCache の既定の実装を IServiceCollection に追加します。 動作に分散キャッシュを必要とするフレームワークでは、その依存関係一覧の一部としてこの依存関係を安全に追加し、実装が少なくとも 1 つ利用できるように手配できます。

AddMemoryCache(IServiceCollection)

IMemoryCache の非分散メモリ内実装を IServiceCollection に追加します。

AddMemoryCache(IServiceCollection, Action<MemoryCacheOptions>)

IMemoryCache の非分散メモリ内実装を IServiceCollection に追加します。

AddMetrics(IServiceCollection)

指定した にメトリック サービスを追加します IServiceCollection

AddMetrics(IServiceCollection, Action<IMetricsBuilder>)

指定した にメトリック サービスを追加します IServiceCollection

AddNullLatencyContext(IServiceCollection)

操作なしの待機時間コンテキストを依存関係挿入コンテナーに追加します。

AddPooled<TService>(IServiceCollection, Action<DependencyInjectionPoolOptions>)

ObjectPool<T> 追加し、DI が のスコープ付きインスタンスを TService返すようにします。

AddPooled<TService,TImplementation>(IServiceCollection, Action<DependencyInjectionPoolOptions>)

ObjectPool<T> 追加し、DI が のスコープ付きインスタンスを TService返すようにします。

ConfigurePool<TService>(IServiceCollection, Action<DependencyInjectionPoolOptions>)

型指定されたプールの を構成 DependencyInjectionPoolOptions するために使用されるアクションを登録します。

ConfigurePools(IServiceCollection, IConfigurationSection)

DI プールを構成します。

Configure<TOptions>(IServiceCollection, IConfiguration)

TOptions のバインド先となる構成インスタンスを登録し、構成が変更されたときにオプションを更新します。

Configure<TOptions>(IServiceCollection, IConfiguration, Action<BinderOptions>)

TOptions のバインド先となる構成インスタンスを登録します。

Configure<TOptions>(IServiceCollection, String, IConfiguration)

TOptions のバインド先となる構成インスタンスを登録します。

Configure<TOptions>(IServiceCollection, String, IConfiguration, Action<BinderOptions>)

TOptions のバインド先となる構成インスタンスを登録します。

AddOptions(IServiceCollection)

オプションを使用するために必要なサービスを追加します。

AddOptions<TOptions>(IServiceCollection)

同じ 名前TOptionsの呼び出しをConfigure基になるサービス コレクションに転送するオプション ビルダーを取得します。

AddOptions<TOptions>(IServiceCollection, String)

同じ 名前TOptionsの呼び出しをConfigure基になるサービス コレクションに転送するオプション ビルダーを取得します。

AddOptionsWithValidateOnStart<TOptions>(IServiceCollection, String)

オプションを使用するために必要なサービスを追加し、実行時ではなく起動時にオプション検証チェックを適用します。

AddOptionsWithValidateOnStart<TOptions,TValidateOptions>(IServiceCollection, String)

オプションを使用するために必要なサービスを追加し、実行時ではなく起動時にオプション検証チェックを適用します。

Configure<TOptions>(IServiceCollection, Action<TOptions>)

起動時に 1 回、特定の型のオプションを構成するために使用されるアクションを登録します。 これは PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) の前に実行されます。 構成を更新しても、このアクションは再度呼び出されません。

Configure<TOptions>(IServiceCollection, String, Action<TOptions>)

特定の型のオプションを構成するために使用されるアクションを登録します。 これらは、PostConfigure<TOptions>(IServiceCollection, Action<TOptions>) の前に実行されます。

ConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

特定の型のオプションのすべてのインスタンスを構成するために使用されるアクションを登録します。

ConfigureOptions(IServiceCollection, Object)

すべてのオブジェクトが登録されているオブジェクトを I[Post]ConfigureOptions 登録します。

ConfigureOptions(IServiceCollection, Type)

すべてのが登録される型を I[Post]ConfigureOptions 登録します。

ConfigureOptions<TConfigureOptions>(IServiceCollection)

すべてのが登録される型を I[Post]ConfigureOptions 登録します。

PostConfigure<TOptions>(IServiceCollection, Action<TOptions>)

特定の型のオプションを初期化するために使用されるアクションを登録します。 これらは、Configure<TOptions>(IServiceCollection, Action<TOptions>) の後に実行されます。

PostConfigure<TOptions>(IServiceCollection, String, Action<TOptions>)

特定の型のオプションを構成するために使用されるアクションを登録します。 これらは、Configure<TOptions>(IServiceCollection, Action<TOptions>) の後に実行されます。

PostConfigureAll<TOptions>(IServiceCollection, Action<TOptions>)

特定の型のオプションのすべてのインスタンスを後で構成するために使用されるアクションを登録します。 これらは、Configure<TOptions>(IServiceCollection, Action<TOptions>) の後に実行されます。

AddProcessLogEnricher(IServiceCollection)

プロセス エンリッチャーのインスタンスを に追加します IServiceCollection

AddProcessLogEnricher(IServiceCollection, IConfigurationSection)

ホスト エンリッチャーのインスタンスを に追加します IServiceCollection

AddProcessLogEnricher(IServiceCollection, Action<ProcessLogEnricherOptions>)

プロセス エンリッチャーのインスタンスを に追加します IServiceCollection

AddRedaction(IServiceCollection)

の実装 IRedactorProvider を に登録します IServiceCollection

AddRedaction(IServiceCollection, Action<IRedactionBuilder>)

IServiceCollectionIRedactorProvider実装を登録し、使用可能な編集機能を構成します。

AddResilienceEnricher(IServiceCollection)

回復性エンリッチャーを追加します。

AddResourceMonitoring(IServiceCollection)

実装を構成し、サービス コレクションに追加 IResourceMonitor します。

AddResourceMonitoring(IServiceCollection, Action<IResourceMonitorBuilder>)

実装を構成し、サービス コレクションに追加 IResourceMonitor します。

BuildServiceProvider(IServiceCollection)

指定した IServiceCollection のサービスを格納する ServiceProvider を作成します。

BuildServiceProvider(IServiceCollection, ServiceProviderOptions)

指定した IServiceCollection のサービスを格納する ServiceProvider を作成し、必要に応じてサービスの作成とスコープの検証を有効にします。

BuildServiceProvider(IServiceCollection, Boolean)

指定した IServiceCollection のサービスを格納する ServiceProvider を作成し、必要に応じてスコープの検証を有効にします。

AddHostedService<THostedService>(IServiceCollection)

指定した型の IHostedService の登録を追加します。

AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider,THostedService>)

指定した型の IHostedService の登録を追加します。

AddKeyedScoped(IServiceCollection, Type, Object)

serviceType で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedScoped(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

implementationFactory でファクトリを指定し、serviceType で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedScoped(IServiceCollection, Type, Object, Type)

implementationType で型の実装を指定し、serviceType で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedScoped<TService>(IServiceCollection, Object)

TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedScoped<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

implementationFactory でファクトリを指定し、TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedScoped<TService,TImplementation>(IServiceCollection, Object)

TImplementation で実装型を指定し、TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedScoped<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

implementationFactory で指定したファクトリを使用して TImplementation で実装型を指定し、TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton(IServiceCollection, Type, Object)

serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

implementationFactory でファクトリを指定し、serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton(IServiceCollection, Type, Object, Object)

implementationInstance でインスタンスを指定し、serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton(IServiceCollection, Type, Object, Type)

implementationType で型の実装を指定し、serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton<TService>(IServiceCollection, Object)

TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton<TService>(IServiceCollection, Object, TService)

implementationInstance でインスタンスを指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

implementationFactory でファクトリを指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object)

TImplementation で実装型を指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedSingleton<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

implementationFactory で指定したファクトリを使用して TImplementation で実装型を指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient(IServiceCollection, Type, Object)

serviceType で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient(IServiceCollection, Type, Object, Func<IServiceProvider,Object,Object>)

implementationFactory でファクトリを指定し、serviceType で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient(IServiceCollection, Type, Object, Type)

implementationType で型の実装を指定し、serviceType で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient<TService>(IServiceCollection, Object)

TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient<TService>(IServiceCollection, Object, Func<IServiceProvider,Object,TService>)

implementationFactory でファクトリを指定し、TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient<TService,TImplementation>(IServiceCollection, Object)

TImplementation で実装型を指定し、TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddKeyedTransient<TService,TImplementation>(IServiceCollection, Object, Func<IServiceProvider,Object,TImplementation>)

implementationFactory で指定したファクトリを使用して TImplementation で実装型を指定し、TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddScoped(IServiceCollection, Type)

serviceType で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddScoped(IServiceCollection, Type, Func<IServiceProvider,Object>)

implementationFactory でファクトリを指定し、serviceType で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddScoped(IServiceCollection, Type, Type)

implementationType で型の実装を指定し、serviceType で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddScoped<TService>(IServiceCollection)

TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddScoped<TService>(IServiceCollection, Func<IServiceProvider,TService>)

implementationFactory でファクトリを指定し、TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddScoped<TService,TImplementation>(IServiceCollection)

TImplementation で実装型を指定し、TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddScoped<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

implementationFactory で指定したファクトリを使用して TImplementation で実装型を指定し、TService で指定した型のスコープ サービスを、指定した IServiceCollection に追加します。

AddSingleton(IServiceCollection, Type)

serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton(IServiceCollection, Type, Func<IServiceProvider,Object>)

implementationFactory でファクトリを指定し、serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton(IServiceCollection, Type, Object)

implementationInstance でインスタンスを指定し、serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton(IServiceCollection, Type, Type)

implementationType で型の実装を指定し、serviceType で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton<TService>(IServiceCollection)

TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton<TService>(IServiceCollection, TService)

implementationInstance でインスタンスを指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton<TService>(IServiceCollection, Func<IServiceProvider,TService>)

implementationFactory でファクトリを指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton<TService,TImplementation>(IServiceCollection)

TImplementation で実装型を指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddSingleton<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

implementationFactory で指定したファクトリを使用して TImplementation で実装型を指定し、TService で指定した型のシングルトン サービスを、指定した IServiceCollection に追加します。

AddTransient(IServiceCollection, Type)

serviceType で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTransient(IServiceCollection, Type, Func<IServiceProvider,Object>)

implementationFactory でファクトリを指定し、serviceType で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTransient(IServiceCollection, Type, Type)

implementationType で型の実装を指定し、serviceType で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTransient<TService>(IServiceCollection)

TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTransient<TService>(IServiceCollection, Func<IServiceProvider,TService>)

implementationFactory でファクトリを指定し、TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTransient<TService,TImplementation>(IServiceCollection)

TImplementation で実装型を指定し、TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTransient<TService,TImplementation>(IServiceCollection, Func<IServiceProvider,TImplementation>)

implementationFactory で指定したファクトリを使用して TImplementation で実装型を指定し、TService で指定した型の一時サービスを、指定した IServiceCollection に追加します。

AddTcpEndpointProbe(IServiceCollection)

サービスが正常 IHealthCheckと見なされる場合は、TCP ポートを使用して正常性状態レポートを登録します。

AddTcpEndpointProbe(IServiceCollection, IConfigurationSection)

サービスが正常 IHealthCheckと見なされる場合は、TCP ポートを使用して正常性状態レポートを登録します。

AddTcpEndpointProbe(IServiceCollection, Action<TcpEndpointProbesOptions>)

サービスが正常 IHealthCheckと見なされる場合は、TCP ポートを使用して正常性状態レポートを登録します。

AddTcpEndpointProbe(IServiceCollection, String)

サービスが正常 IHealthCheckと見なされる場合は、TCP ポートを使用して正常性状態レポートを登録します。

AddTcpEndpointProbe(IServiceCollection, String, IConfigurationSection)

サービスが正常 IHealthCheckと見なされる場合は、TCP ポートを使用して正常性状態レポートを登録します。

AddTcpEndpointProbe(IServiceCollection, String, Action<TcpEndpointProbesOptions>)

サービスが正常 IHealthCheckと見なされる場合は、TCP ポートを使用して正常性状態レポートを登録します。

AddSystemd(IServiceCollection)

IServiceCollection の既定の実装。

AddWindowsService(IServiceCollection)

IServiceCollection の既定の実装。

AddWindowsService(IServiceCollection, Action<WindowsServiceLifetimeOptions>)

IServiceCollection の既定の実装。

適用対象