This method is invoked when no session was available at and the ISessionFactoryHolder just created one. So it registers the session created within this scope using a key. The scope implementation shouldn't make any assumption on what the key actually is as we reserve the right to change it DifferentDatabaseScope..::IsKeyKnown(Object)

Namespace: Castle.ActiveRecord.Framework.Scopes
Assembly:  Castle.ActiveRecord (in Castle.ActiveRecord.dll)
Version: 1.0.3.0

Syntax

C#
public override void RegisterSession(
	Object key,
	ISession session
)

Parameters

key
Object
an object instance
session
ISession
An instance of ISession

See Also