Пример #1
0
 public FileStorage(IInMemoryStorage inMemoryStorage, StorageSettings settings)
 {
     this.inMemoryStorage = inMemoryStorage;
     dataProvider         = new JsonFileDataProvider();
     this.settings        = settings;
 }
Пример #2
0
        public InMemoryStorage(StorageSettings settings)
        {
            this.settings = settings;

            sessions = new Dictionary <string, Session>();
        }
Пример #3
0
 public FileStorage(StorageSettings settings)
 {
     inMemoryStorage = new InMemoryStorage(settings);
     dataProvider    = new JsonFileDataProvider();
     this.settings   = settings;
 }