public SessionFactoryParameters GetSessionFactoryParameters() { var shellPath = _userFolder.CombineToPhysicalPath(ConfigService.ConnectionSettings.Name); _userFolder.CreateDirectory(shellPath); lock (_factorySync) { return(new SessionFactoryParameters { Provider = ConfigService.ConnectionSettings.ProviderName, DataFolder = _userFolder.MapPath(_userFolder.DataModelFile), ConnectionString = ConfigService.ConnectionSettings.ConnectionString, RecordDescriptors = ShellBlueprint.Records, }); } }