Exemplo n.º 1
0
 public AccountManager(IKeyValueStorage storage,
                       CommandBuilder commandBuilder,
                       IUserIdProvider userIdProvider,
                       TransportManager transportManager)
 {
     _storage          = storage;
     _commandBuilder   = commandBuilder;
     _userIdProvider   = userIdProvider;
     _transportManager = transportManager;
     Number            = _storage.GetValue(NumberKey, string.Empty);
     UserId            = _storage.GetValue(UserIdKey, string.Empty);
 }
 public AccountManager(IKeyValueStorage storage, 
     CommandBuilder commandBuilder,
     IUserIdProvider userIdProvider,
     TransportManager transportManager)
 {
     _storage = storage;
     _commandBuilder = commandBuilder;
     _userIdProvider = userIdProvider;
     _transportManager = transportManager;
     Number = _storage.GetValue(NumberKey, string.Empty);
     UserId = _storage.GetValue(UserIdKey, string.Empty);
 }
Exemplo n.º 3
0
 private IEnumerable <string> ReadFlightsOnce()
 {
     return(keyValueStorage.GetValue(pathToSettings, new string[0]));
 }
 public ValueModel GetValue(KeyModel key) => _storage.GetValue(key);
Exemplo n.º 5
0
 private string GetValue(string key)
 {
     return(storage.GetValue(MakeKey(key)));
 }