Castle.ActiveRecord.AR.CreateSessionFactoryAndRegisterToHolder C# (CSharp) Метод

CreateSessionFactoryAndRegisterToHolder() приватный статический Метод

Initialize the mappings using the configuration and the list of types
private static CreateSessionFactoryAndRegisterToHolder ( IActiveRecordConfiguration source ) : void
source IActiveRecordConfiguration
Результат void
        private static void CreateSessionFactoryAndRegisterToHolder(IActiveRecordConfiguration source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            lock(LockConfig)
            {
                if (Holder == null) {
                    // First initialization
                    Holder = CreateSessionFactoryHolderImplementation(source);
                    RaiseSessionFactoryHolderCreated(Holder);
                }
            }
        }