Share via


ServiceCollectionMap.TryAddScopedEnumerable 메서드

정의

오버로드

TryAddScopedEnumerable(Type, Type)

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

TryAddScopedEnumerable<TService,TImplementation>()

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

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

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

TryAddScopedEnumerable(Type, Type)

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

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

매개 변수

serviceType
Type

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

implementationType
Type

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

반환

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

적용 대상

TryAddScopedEnumerable<TService,TImplementation>()

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

public virtual Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap TryAddScopedEnumerable<TService,TImplementation> () where TService : class where TImplementation : class, TService;
abstract member TryAddScopedEnumerable : unit -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap (requires 'Service : null)
override this.TryAddScopedEnumerable : unit -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap (requires 'Service : null)
Public Overridable Function TryAddScopedEnumerable(Of TService As Class, TImplementation As Class) () As ServiceCollectionMap

형식 매개 변수

TService

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

TImplementation

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

반환

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

적용 대상

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

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

public virtual Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap TryAddScopedEnumerable<TService,TImplementation> (Func<IServiceProvider,TImplementation> factory) where TService : class where TImplementation : class, TService;
abstract member TryAddScopedEnumerable : Func<IServiceProvider, #'Service> -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap (requires 'Service : null)
override this.TryAddScopedEnumerable : Func<IServiceProvider, #'Service> -> Microsoft.EntityFrameworkCore.Infrastructure.ServiceCollectionMap (requires 'Service : null)
Public Overridable Function TryAddScopedEnumerable(Of TService As Class, TImplementation As Class) (factory As Func(Of IServiceProvider, TImplementation)) As ServiceCollectionMap

형식 매개 변수

TService

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

TImplementation

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

매개 변수

factory
Func<IServiceProvider,TImplementation>

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

반환

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

적용 대상