ServiceDescriptor.Transient メソッド

定義

オーバーロード

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 のインスタンスを作成します。

Transient(Type, Func<IServiceProvider,Object>)

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

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

public:
 static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Transient(Type ^ service, Func<IServiceProvider ^, System::Object ^> ^ implementationFactory);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient (Type service, Func<IServiceProvider,object> implementationFactory);
static member Transient : Type * Func<IServiceProvider, obj> -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function Transient (service As Type, implementationFactory As Func(Of IServiceProvider, Object)) As ServiceDescriptor

パラメーター

service
Type

サービスの型。

implementationFactory
Func<IServiceProvider,Object>

サービス実装の新しいインスタンスを作成するファクトリ。

戻り値

ServiceDescriptor の新しいインスタンス。

適用対象

Transient(Type, Type)

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

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

public:
 static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Transient(Type ^ service, Type ^ implementationType);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient (Type service, Type implementationType);
static member Transient : Type * Type -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor
Public Shared Function Transient (service As Type, implementationType As Type) As ServiceDescriptor

パラメーター

service
Type

サービスの型。

implementationType
Type

実装の型。

戻り値

ServiceDescriptor の新しいインスタンス。

適用対象

Transient<TService,TImplementation>()

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

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

public:
generic <typename TService, typename TImplementation>
 where TService : class where TImplementation : class, TService static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Transient();
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient<TService,TImplementation> () where TService : class where TImplementation : class, TService;
static member Transient : unit -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor (requires 'Service : null)
Public Shared Function Transient(Of TService As Class, TImplementation As Class) () As ServiceDescriptor

型パラメーター

TService

サービスの型。

TImplementation

実装の型。

戻り値

ServiceDescriptor の新しいインスタンス。

適用対象

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

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

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

public:
generic <typename TService, typename TImplementation>
 where TService : class where TImplementation : class, TService static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Transient(Func<IServiceProvider ^, TImplementation> ^ implementationFactory);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient<TService,TImplementation> (Func<IServiceProvider,TImplementation> implementationFactory) where TService : class where TImplementation : class, TService;
static member Transient : Func<IServiceProvider, #'Service> -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor (requires 'Service : null)
Public Shared Function Transient(Of TService As Class, TImplementation As Class) (implementationFactory As Func(Of IServiceProvider, TImplementation)) As ServiceDescriptor

型パラメーター

TService

サービスの型。

TImplementation

実装の型。

パラメーター

implementationFactory
Func<IServiceProvider,TImplementation>

サービス実装の新しいインスタンスを作成するファクトリ。

戻り値

ServiceDescriptor の新しいインスタンス。

適用対象

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

ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs
ソース:
ServiceDescriptor.cs

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

public:
generic <typename TService>
 where TService : class static Microsoft::Extensions::DependencyInjection::ServiceDescriptor ^ Transient(Func<IServiceProvider ^, TService> ^ implementationFactory);
public static Microsoft.Extensions.DependencyInjection.ServiceDescriptor Transient<TService> (Func<IServiceProvider,TService> implementationFactory) where TService : class;
static member Transient : Func<IServiceProvider, 'Service (requires 'Service : null)> -> Microsoft.Extensions.DependencyInjection.ServiceDescriptor (requires 'Service : null)
Public Shared Function Transient(Of TService As Class) (implementationFactory As Func(Of IServiceProvider, TService)) As ServiceDescriptor

型パラメーター

TService

サービスの型。

パラメーター

implementationFactory
Func<IServiceProvider,TService>

サービス実装の新しいインスタンスを作成するファクトリ。

戻り値

ServiceDescriptor の新しいインスタンス。

適用対象