public SessionFactoryHolderFactory(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func<IEnumerable<ISessionConfigurationEvents>> configurers,
            IRepository<ConnectionsRecord> connectionsRecordRepository,
            IEncryptionService encryptionService,
            ICacheManager cacheManager)
        {
            _shellSettings = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment = hostEnvironment;
            _cacheConfiguration = cacheConfiguration;
            _configurers = configurers;
            _connectionsRecordRepository = connectionsRecordRepository;
            _encryptionService = encryptionService;
            _cacheManager = cacheManager;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Пример #2
0
        public CustomSessionFactoryHolder(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func <IEnumerable <ISessionConfigurationEvents> > configurers,
            string provider,
            string connectionString
            )
        {
            _shellSettings  = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder             = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment           = hostEnvironment;
            _cacheConfiguration        = cacheConfiguration;
            _configurers = configurers;

            _provider         = provider;
            _connectionString = connectionString;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public SessionFactoryHolderFactory(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func <IEnumerable <ISessionConfigurationEvents> > configurers,
            IRepository <ConnectionsRecord> connectionsRecordRepository,
            IEncryptionService encryptionService,
            ICacheManager cacheManager)
        {
            _shellSettings  = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder             = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment           = hostEnvironment;
            _cacheConfiguration        = cacheConfiguration;
            _configurers = configurers;
            _connectionsRecordRepository = connectionsRecordRepository;
            _encryptionService           = encryptionService;
            _cacheManager = cacheManager;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Пример #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="shellSettings"></param>
        public SessionFactoryHolder(
            ShellSettings shellSettings)
        {
            _shellSettings = shellSettings;
            _dataServicesProviderFactory = new DataServicesProviderFactory(new[] {
                new Meta <CreateDataServicesProvider>(
                    (dataFolder, connectionString) => new SqlServerDataServicesProvider(dataFolder, connectionString),
                    new Dictionary <string, object> {
                    { "ProviderName", "SqlServer" }
                }),
                new Meta <CreateDataServicesProvider>(
                    (dataFolder, connectionString) => new SqlCeDataServicesProvider(dataFolder, connectionString),
                    new Dictionary <string, object> {
                    { "ProviderName", "SqlCe" }
                }),
                new Meta <CreateDataServicesProvider>(
                    (dataFolder, connectionString) => new MySqlDataServicesProvider(dataFolder, connectionString),
                    new Dictionary <string, object> {
                    { "ProviderName", "MySql" }
                })
            });
            _sessionConfigurationCache = new SessionConfigurationCache(_shellSettings);
            _cacheConfiguration        = new DefaultDatabaseCacheConfiguration();

            Logger = LoggerFactory.GetLog();
        }
Пример #5
0
 public SessionFactoryHolder(ShellSettings shellSetting, IEnumerable<RecordBlueprint> records,
     ISessionConfigurationCache sessionConfigurationCache, IDataServicesProviderFactory dataServicesProviderFactory, IDatabaseCacheConfiguration cacheConfiguration)
 {
     _shellSettings = shellSetting;
     _records = records;
     _sessionConfigurationCache = sessionConfigurationCache;
     _dataServicesProviderFactory = dataServicesProviderFactory;
     _cacheConfiguration = cacheConfiguration;
     Logger = NullLogger.Instance;
 }
Пример #6
0
 public SessionFactoryHolder(ShellSettings shellSetting, IEnumerable <RecordBlueprint> records,
                             ISessionConfigurationCache sessionConfigurationCache, IDataServicesProviderFactory dataServicesProviderFactory, IDatabaseCacheConfiguration cacheConfiguration)
 {
     _shellSettings               = shellSetting;
     _records                     = records;
     _sessionConfigurationCache   = sessionConfigurationCache;
     _dataServicesProviderFactory = dataServicesProviderFactory;
     _cacheConfiguration          = cacheConfiguration;
     Logger = NullLogger.Instance;
 }
Пример #7
0
 public SessionFactoryHolder(IHostEnvironment hostEnvironment, ISessionConfigurationCache sessionConfigurationCache,
                             IDatabaseCacheConfiguration cacheConfiguration,
                             ShellBlueprint shellBluePrint,
                             Func <IEnumerable <ISessionConfigurationEvents> > configurers,
                             ShellSettings shellSettings,
                             IAppDataFolder appDataFolder,
                             IDataServicesProviderFactory dataServicesProviderFactory)
 {
     Logger                       = NullLogger.Instance;
     _hostEnvironment             = hostEnvironment;
     _sessionConfigurationCache   = sessionConfigurationCache;
     _cacheConfiguration          = cacheConfiguration;
     _configurers                 = configurers;
     _dataServicesProviderFactory = dataServicesProviderFactory;
     _shellSettings               = shellSettings;
     _shellBlueprint              = shellBluePrint;
     _appDataFolder               = appDataFolder;
 }
Пример #8
0
        public SessionFactoryHolder(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration) {
            _shellSettings = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment = hostEnvironment;
            _cacheConfiguration = cacheConfiguration;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public SessionFactoryHolder(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration)
        {
            _shellSettings  = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder             = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment           = hostEnvironment;
            _cacheConfiguration        = cacheConfiguration;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
        public CustomSessionFactoryHolder(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func<IEnumerable<ISessionConfigurationEvents>> configurers,
            string provider,
            string connectionString
            )
        {
            _shellSettings = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment = hostEnvironment;
            _cacheConfiguration = cacheConfiguration;
            _configurers = configurers;

            _provider = provider;
            _connectionString = connectionString;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }