Пример #1
0
        public EngineBuilder(MemstateSettings settings, StorageProvider storageProvider = null)
        {
            _settings        = settings;
            _storageProvider = storageProvider ?? settings.CreateStorageProvider();

            _storageProvider.Initialize();
        }
Пример #2
0
        public EngineBuilder(MemstateSettings settings, StorageProvider storageProvider = null)
        {
            _settings        = settings;
            _storageProvider = storageProvider ?? settings.CreateStorageProvider();

            // TODO: Figure out what to do if initialization has already been executed.
            _storageProvider.Initialize();
        }