C# 클래스 Patterns.Autofac.Sources.ResolveCreatableSource

Provides an IRegistrationSource implementation that always builds new registrations for creatable types, negating the need to pre-register them. Interfaces and abstract classes will still need to be registered in the normal way.
Using this class can have unwanted side effects and is intended for fringe scenarios; use with caution.
상속: IRegistrationSource
파일 보기 프로젝트 열기: patterns-group/code-patterns

공개 메소드들

메소드 설명
RegistrationsFor ( Autofac.Core.Service service, Func registrationAccessor ) : IEnumerable

Retrieves registrations for an unregistered service, to be used by the container. If service is a creatable type, a new registration will be created; otherwise, an empty enumerable is returned.

메소드 상세

RegistrationsFor() 공개 메소드

Retrieves registrations for an unregistered service, to be used by the container. If service is a creatable type, a new registration will be created; otherwise, an empty enumerable is returned.
public RegistrationsFor ( Autofac.Core.Service service, Func registrationAccessor ) : IEnumerable
service Autofac.Core.Service The service that was requested.
registrationAccessor Func A function that will return existing registrations for a service.
리턴 IEnumerable