C# Класс Spring.Data.NHibernate.Support.SessionPerConversationScope.LazySessionPerConversationHolder

This sessionHolder creates a session for the active conversation only if it is needed (IConversationState.StartResumeConversation).
Although a NHibernateSession defers creation of db-connections until they are really needed, instantiation a session is still more expensive than using LazySessionHolder.
Наследование: SessionHolder
Показать файл Открыть проект

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

Метод Описание
CloseAll ( ) : void
LazySessionPerConversationHolder ( SessionPerConversationScope owner, IConversationState activeConversation, ICollection allManagedConversation ) : System

Initialize a new instance.

Защищенные методы

Метод Описание
EnsureInitialized ( ) : void

Create a new session on demand

Приватные методы

Метод Описание
CloseConversation ( IConversationState conversation ) : void

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

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

public CloseAll ( ) : void
Результат void

EnsureInitialized() защищенный Метод

Create a new session on demand
protected EnsureInitialized ( ) : void
Результат void

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

Initialize a new instance.
public LazySessionPerConversationHolder ( SessionPerConversationScope owner, IConversationState activeConversation, ICollection allManagedConversation ) : System
owner SessionPerConversationScope
activeConversation IConversationState
allManagedConversation ICollection
Результат System