C# 클래스 Rebel.Framework.Bootstrappers.Autofac.Modules.ConfigurationElementExtensions

파일 보기 프로젝트 열기: RebelCMS/rebelcmsxu5

공개 메소드들

메소드 설명
ToParameter ( this element ) : ResolvedParameter

Converts a PersistenceReaderElement to a ResolvedParameter, meaning persistence repository types referenced in configuration by name can be injected into the constructor of the parent provider.

ResolvedParameter types allow for the deferred resolution of a type by using an IComponentContext to queue calls to resolve the instances, which would otherwise be tricky to do via chaining modules together

ToParameters ( this collection ) : IEnumerable

Converts the PersistenceReadWriterElement in a PersistenceReadWriterElementCollection to a ResolvedParameter, meaning persistence repository types referenced in configuration by name can be injected into the constructor of the parent provider.

ResolvedParameter types allow for the deferred resolution of a type by using an IComponentContext to queue calls to resolve the instances, which would otherwise be tricky to do via chaining modules together

비공개 메소드들

메소드 설명
ResolveNamedPersistenceRepositoryProvider ( IComponentContext context, PersistenceReadWriterElement providerElement ) : object

Resolves the named persistence read-writer using an IComponentContext.

ResolveNamedPersistenceRepositoryProvider ( IComponentContext context, PersistenceReaderElement providerElement ) : object

Resolves the named persistence reader using an IComponentContext.

메소드 상세

ToParameter() 공개 정적인 메소드

Converts a PersistenceReaderElement to a ResolvedParameter, meaning persistence repository types referenced in configuration by name can be injected into the constructor of the parent provider.
ResolvedParameter types allow for the deferred resolution of a type by using an IComponentContext to queue calls to resolve the instances, which would otherwise be tricky to do via chaining modules together
public static ToParameter ( this element ) : ResolvedParameter
element this
리턴 ResolvedParameter

ToParameters() 공개 정적인 메소드

Converts the PersistenceReadWriterElement in a PersistenceReadWriterElementCollection to a ResolvedParameter, meaning persistence repository types referenced in configuration by name can be injected into the constructor of the parent provider.
ResolvedParameter types allow for the deferred resolution of a type by using an IComponentContext to queue calls to resolve the instances, which would otherwise be tricky to do via chaining modules together
public static ToParameters ( this collection ) : IEnumerable
collection this
리턴 IEnumerable