ServiceCollectionMap.TryAddEnumerable 메서드

정의

오버로드

TryAddEnumerable(Type, Type, ServiceLifetime)

지정된 구체적인 형식으로 구현된 서비스를 지정된 계약을 구현하는 서비스 목록에 추가합니다. 서비스는 컬렉션에 동일한 서비스 및 구현 형식에 대한 다른 등록이 없는 경우에만 추가됩니다.

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

지정된 팩터리에서 구현된 서비스를 지정된 계약을 구현하는 서비스 목록에 추가합니다. 서비스는 컬렉션에 동일한 서비스 및 구현 형식에 대한 다른 등록이 없는 경우에만 추가됩니다.

TryAddEnumerable(Type, Type, ServiceLifetime)

지정된 구체적인 형식으로 구현된 서비스를 지정된 계약을 구현하는 서비스 목록에 추가합니다. 서비스는 컬렉션에 동일한 서비스 및 구현 형식에 대한 다른 등록이 없는 경우에만 추가됩니다.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap TryAddEnumerable (Type serviceType, Type implementationType, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
abstract member TryAddEnumerable : Type * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap
override this.TryAddEnumerable : Type * Type * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap
Public Overridable Function TryAddEnumerable (serviceType As Type, implementationType As Type, lifetime As ServiceLifetime) As ServiceCollectionMap

매개 변수

serviceType
Type

서비스에 대한 계약입니다.

implementationType
Type

서비스를 구현하는 구체적인 형식입니다.

lifetime
ServiceLifetime

서비스 수명입니다.

반환

추가 호출을 연결할 수 있는 맵입니다.

적용 대상

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

지정된 팩터리에서 구현된 서비스를 지정된 계약을 구현하는 서비스 목록에 추가합니다. 서비스는 컬렉션에 동일한 서비스 및 구현 형식에 대한 다른 등록이 없는 경우에만 추가됩니다.

public virtual Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap TryAddEnumerable (Type serviceType, Type implementationType, Func<IServiceProvider,object> factory, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime);
abstract member TryAddEnumerable : Type * Type * Func<IServiceProvider, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap
override this.TryAddEnumerable : Type * Type * Func<IServiceProvider, obj> * Microsoft.Extensions.DependencyInjection.ServiceLifetime -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap
Public Overridable Function TryAddEnumerable (serviceType As Type, implementationType As Type, factory As Func(Of IServiceProvider, Object), lifetime As ServiceLifetime) As ServiceCollectionMap

매개 변수

serviceType
Type

서비스에 대한 계약입니다.

implementationType
Type

서비스를 구현하는 구체적인 형식입니다.

factory
Func<IServiceProvider,Object>

이 서비스를 구현하는 팩터리입니다.

lifetime
ServiceLifetime

서비스 수명입니다.

반환

추가 호출을 연결할 수 있는 맵입니다.

적용 대상