Resolves ISessionFactory lookups and deserialization.
Namespace: NHibernate.ImplAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public static class SessionFactoryObjectFactory |
Visual Basic |
---|
Public NotInheritable Class SessionFactoryObjectFactory |
Visual C++ |
---|
public ref class SessionFactoryObjectFactory abstract sealed |
Remarks
This is used heavily be Deserialization. Currently a SessionFactory is not really serialized. All that is serialized is it's name and uid. During Deserializaiton the serialized SessionFactory is converted to the one contained in this object. So if you are serializing across AppDomains you should make sure that "name" is specified for the SessionFactory in the hbm.xml file and that the other AppDomain has a configured SessionFactory with the same name. If you are serializing in the same AppDomain then there will be no problem because the uid will be in this object.