public MobileServiceController(IVaultRepositoryFactory vaultRepositoryFactory, IServerConfigurationReader serverConfigurationReader, IFileSystem fileSystem) { this.VaultRepositoryFactory = vaultRepositoryFactory; this.ServerConfigurationReader = serverConfigurationReader; this.FileSystem = fileSystem; }
public LoginPresenter(ILoginView view, IServerCommunicator serverCommunicator, IMobileConfigurationReader mobileConfigurationReader, INavigationManager navigationManager, IFileSystem fileSystem, IVaultRepositoryFactory vaultRepositoryFactory, ISynchronizer synchronizer, IAlertDisplayer alertDisplayer, ISecureStringConverter secureStringConverter, IApplicationContext applicationContext) { this.View = view; this.MobileConfigurationReader = mobileConfigurationReader; this.NavigationManager = navigationManager; this.FileSystem = fileSystem; this.Synchronizer = synchronizer; this.VaultRepositoryFactory = vaultRepositoryFactory; this.AlertDisplayer = alertDisplayer; this.SecureStringConverter = secureStringConverter; this.ApplicationContext = applicationContext; var config = MobileConfigurationReader.GetConfiguration(); this.View.SyncButtonVisible = config.ApplicationMode == ApplicationMode.Client; var repository = VaultRepositoryFactory.CreateInstance(); var vaults = repository.GetAllVaultNames(); this.View.VaultNames = vaults; this.View.SelectedVaultName = vaults.FirstOrDefault(); this.View.Login += OnLogin; this.View.NavigateToConfiguration += OnNavigateToConfiguration; this.View.Sync += OnSync; this.Synchronizer.StatusUpdate += (message) => this.View.ActivityIndicatorText = message; this.View.Initialize += OnInitialize; }
public Synchronizer(IServerCommunicator serverCommunicator, IVaultRepositoryFactory vaultRepositoryFactory, IFileSystem fileSystem, ISyncContext syncContext) { this.ServerCommunicator = serverCommunicator; this.VaultRepositoryFactory = vaultRepositoryFactory; this.FileSystem = fileSystem; this.SyncContext = syncContext; }
public LoginController(IVaultRepositoryFactory vaultRepositoryFactory, ISecureStringConverter secureStringConverter, ISecureStringBinarySerializer secureStringBinarySerializer, ISessionContext sessionContext, IAuthorizationLogic authorizationLogic) { this.VaultRepositoryFactory = vaultRepositoryFactory; this.SecureStringConverter = secureStringConverter; this.SessionContext = sessionContext; this.AuthorizationLogic = authorizationLogic; }
public VaultController(IVaultRepositoryFactory vaultRepositoryFactory, IVaultFactory vaultFactory, ISecureStringConverter secureStringConverter, ISessionContext sessionContext, ISyncContext syncContext) { this.VaultRepositoryFactory = vaultRepositoryFactory; this.VaultFactory = vaultFactory; this.SecureStringConverter = secureStringConverter; this.SessionContext = sessionContext; this.SyncContext = syncContext; }
public VaultExplorerController(IVaultRepositoryFactory vaultRepositoryFactory, ISessionContext sessionContext, IVaultManipulatorFactory vaultManipulatorFactory, ISyncContext syncContext, IPasswordGenerator passwordGenerator) { this.VaultRepositoryFactory = vaultRepositoryFactory; this.SessionContext = sessionContext; this.VaultManipulatorFactory = vaultManipulatorFactory; this.SyncContext = syncContext; this.PasswordGenerator = passwordGenerator; }
public VaultExplorerPresenter(IVaultExplorerView view, IVaultRepositoryFactory vaultRepositoryFactory, IApplicationContext applicationContext, INavigationManager navigationManager) { this.View = view; this.VaultRepositoryFactory = vaultRepositoryFactory; this.ApplicationContext = applicationContext; this.NavigationManager = navigationManager; var vaultRepository = this.VaultRepositoryFactory.CreateInstance(); using (var password = ApplicationContext.GetMasterPassword()) { var vault = vaultRepository.GetVault(this.ApplicationContext.GetCurrentVaultName(), password); this.View.EntryListItems = CreateListItems(vault.Groups, null); } this.View.EntrySelected += OnEntryItemSelected; this.View.Search += OnSearch; }