ServiceDescriptor クラス

定義

サービスの種類、実装、および有効期間を記述します。

public ref class ServiceDescriptor
public class ServiceDescriptor
type ServiceDescriptor = class
Public Class ServiceDescriptor
継承
ServiceDescriptor

コンストラクター

ServiceDescriptor(Type, Func<IServiceProvider,Object>, ServiceLifetime)

factory を指定して、ServiceDescriptor の新しいインスタンスを初期化します。

ServiceDescriptor(Type, Object)

Singleton として instance を指定して、ServiceDescriptor の新しいインスタンスを初期化します。

ServiceDescriptor(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)

factory を指定して、ServiceDescriptor の新しいインスタンスを初期化します。

ServiceDescriptor(Type, Object, Object)

Singleton として instance を指定して、ServiceDescriptor の新しいインスタンスを初期化します。

ServiceDescriptor(Type, Object, Type, ServiceLifetime)

implementationType を指定して、ServiceDescriptor の新しいインスタンスを初期化します。

ServiceDescriptor(Type, Type, ServiceLifetime)

implementationType を指定して、ServiceDescriptor の新しいインスタンスを初期化します。

プロパティ

ImplementationFactory

サービス インスタンスの作成に使用されるファクトリを取得します。

ImplementationInstance

サービスを実装するインスタンスを取得します。

ImplementationType

サービスを Type 実装する を取得します。

IsKeyedService

サービスがキー付きサービスであるかどうかを示す値を取得します。

KeyedImplementationFactory

キー付きサービス インスタンスの作成に使用されるファクトリを取得します。

KeyedImplementationInstance

サービスを実装するインスタンスを取得します。

KeyedImplementationType

サービスを Type 実装する を取得します。

Lifetime

サービスの を ServiceLifetime 取得します。

ServiceKey

該当する場合は、サービスのキーを取得します。

ServiceType

サービスの を Type 取得します。

メソッド

Describe(Type, Func<IServiceProvider,Object>, ServiceLifetime)

指定した serviceTypeimplementationFactory、および lifetime を使用して ServiceDescriptor のインスタンスを作成します。

Describe(Type, Type, ServiceLifetime)

指定した serviceTypeimplementationType、および lifetime を使用して ServiceDescriptor のインスタンスを作成します。

DescribeKeyed(Type, Object, Func<IServiceProvider,Object,Object>, ServiceLifetime)

指定した serviceTypeimplementationFactory、および lifetime を使用して ServiceDescriptor のインスタンスを作成します。

DescribeKeyed(Type, Object, Type, ServiceLifetime)

指定した serviceTypeimplementationType、および lifetime を使用して ServiceDescriptor のインスタンスを作成します。

Equals(Object)

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

(継承元 Object)
GetHashCode()

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

(継承元 Object)
GetType()

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

(継承元 Object)
KeyedScoped(Type, Object, Func<IServiceProvider,Object,Object>)

指定した serviceimplementationFactory、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedScoped(Type, Object, Type)

service および implementationTypeScoped の有効期間を指定して ServiceDescriptor のインスタンスを作成します。

KeyedScoped<TService,TImplementation>(Object)

指定した TServiceTImplementation、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedScoped<TService,TImplementation>(Object, Func<IServiceProvider,Object,TImplementation>)

指定した TServiceTImplementationimplementationFactory、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedScoped<TService>(Object, Func<IServiceProvider,Object,TService>)

指定した TServiceimplementationFactory、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton(Type, Object, Func<IServiceProvider,Object,Object>)

指定した serviceTypeimplementationFactory、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton(Type, Object, Object)

指定した serviceTypeimplementationInstance、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton(Type, Object, Type)

service および implementationTypeSingleton の有効期間を指定して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton<TService,TImplementation>(Object)

指定した TServiceTImplementation、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton<TService,TImplementation>(Object, Func<IServiceProvider,Object,TImplementation>)

指定した TServiceTImplementationimplementationFactory、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton<TService>(Object, Func<IServiceProvider,Object,TService>)

指定した TServiceimplementationFactory、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedSingleton<TService>(Object, TService)

指定した TServiceimplementationInstance、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedTransient(Type, Object, Func<IServiceProvider,Object,Object>)

指定した serviceimplementationFactory、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedTransient(Type, Object, Type)

service および implementationTypeTransient の有効期間を指定して ServiceDescriptor のインスタンスを作成します。

KeyedTransient<TService,TImplementation>(Object)

指定した TServiceTImplementation、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedTransient<TService,TImplementation>(Object, Func<IServiceProvider,Object,TImplementation>)

指定した TServiceTImplementationimplementationFactory、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

KeyedTransient<TService>(Object, Func<IServiceProvider,Object,TService>)

指定した TServiceimplementationFactory、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

MemberwiseClone()

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

(継承元 Object)
Scoped(Type, Func<IServiceProvider,Object>)

指定した serviceimplementationFactory、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Scoped(Type, Type)

service および implementationTypeScoped の有効期間を指定して ServiceDescriptor のインスタンスを作成します。

Scoped<TService,TImplementation>()

指定した TServiceTImplementation、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Scoped<TService,TImplementation>(Func<IServiceProvider,TImplementation>)

指定した TServiceTImplementationimplementationFactory、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Scoped<TService>(Func<IServiceProvider,TService>)

指定した TServiceimplementationFactory、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Singleton(Type, Func<IServiceProvider,Object>)

指定した serviceTypeimplementationFactory、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Singleton(Type, Object)

指定した serviceTypeimplementationInstance、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Singleton(Type, Type)

service および implementationTypeSingleton の有効期間を指定して ServiceDescriptor のインスタンスを作成します。

Singleton<TService,TImplementation>()

指定した TServiceTImplementation、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Singleton<TService,TImplementation>(Func<IServiceProvider,TImplementation>)

指定した TServiceTImplementationimplementationFactory、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Singleton<TService>(Func<IServiceProvider,TService>)

指定した TServiceimplementationFactory、および Singleton の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Singleton<TService>(TService)

指定した TServiceimplementationInstance、および Scoped の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

ToString()

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

ToString()

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

(継承元 Object)
Transient(Type, Func<IServiceProvider,Object>)

指定した serviceimplementationFactory、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Transient(Type, Type)

service および implementationTypeTransient の有効期間を指定して ServiceDescriptor のインスタンスを作成します。

Transient<TService,TImplementation>()

指定した TServiceTImplementation、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Transient<TService,TImplementation>(Func<IServiceProvider,TImplementation>)

指定した TServiceTImplementationimplementationFactory、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

Transient<TService>(Func<IServiceProvider,TService>)

指定した TServiceimplementationFactory、および Transient の有効期間を使用して ServiceDescriptor のインスタンスを作成します。

適用対象