internal static async Task <AssemblyMetadata> Load(IPersister persister, string target) { persister.Access(target); IAssemblyMetadata result = await persister.Load(); return(new AssemblyMetadata(result)); }
public SettingsRepository(IEventBus eventBus, IPersister persister, ILogger <SettingsRepository> logger) { _persister = persister; _logger = logger; _eventBus = eventBus; _settings = _persister.Load <Settings>(FILENAME) ?? CreateDefaultSettings(); }
public LiveProvider(IPersister <LiveToken> persister) { persister.NotNull("persister"); _persister = persister; var token = _persister.Load(); if (token != null) { _refreshTokenInfo = new RefreshTokenInfo(token.Value); } }
public DropboxProvider(IPersister <DropboxToken> persiter) { persiter.NotNull("persister"); _persister = persiter; var token = _persister.Load(); if (token != null) { _finalLogin = token.Value; } }
private void Initialize() { Retrospectives = _persister.Load(); var lastRetrospective = Retrospectives.FirstOrDefault(); if (lastRetrospective == null) { _currentLevel = new CcdLevel(Level.Black); } else { _currentLevel = lastRetrospective.Clone(); } }
public void LoadPeople(IPersister persister) { var npcs = persister.Load <ObservableCollection <Person> >(); People = npcs; }
public bool Load() { return(_persister.Load()); }