C# Класс Rebel.Framework.Bootstrappers.Autofac.Modules.ConfigurationElementExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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