C# Класс Castle.Facilities.NHibernateIntegration.Internal.SessionFactoryResolver

Default implementation of ISessionFactoryResolver that always queries the kernel instance for the session factory instance.

This gives a chance to developers replace the session factory instance during the application lifetime.

Inspired on Cuyahoga project
Наследование: ISessionFactoryResolver
Показать файл Открыть проект

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

Метод Описание
GetSessionFactory ( String alias ) : ISessionFactory

Returns a session factory instance associated with the specified alias.

RegisterAliasComponentIdMapping ( String alias, String componentKey ) : void

Associated the alias with the component key

SessionFactoryResolver ( IKernel kernel ) : System

Constructs a SessionFactoryResolver

Описание методов

GetSessionFactory() публичный Метод

Returns a session factory instance associated with the specified alias.
/// If the alias is not associated with a session factory ///
public GetSessionFactory ( String alias ) : ISessionFactory
alias String /// The alias associated with the session /// factory on the configuration node ///
Результат ISessionFactory

RegisterAliasComponentIdMapping() публичный Метод

Associated the alias with the component key
public RegisterAliasComponentIdMapping ( String alias, String componentKey ) : void
alias String /// The alias associated with the session /// factory on the configuration node ///
componentKey String /// The component key associated with /// the session factory on the kernel ///
Результат void

SessionFactoryResolver() публичный Метод

Constructs a SessionFactoryResolver
public SessionFactoryResolver ( IKernel kernel ) : System
kernel IKernel /// Kernel instance supplied by the container itself ///
Результат System