public AccountsService(IDefaultValueService defaults, IAccountPreferencesService accountPreferences) { _defaults = defaults; _accountsPath = accountPreferences.AccountsDir; // Assure creation of the accounts path if (!Directory.Exists(_accountsPath)) Directory.CreateDirectory(_accountsPath); _userDatabase = new SQLiteConnection(Path.Combine(_accountsPath, "accounts.db")); _userDatabase.CreateTable<GitHubAccount>(); }
public AccountsService(IDefaultValueService defaults, IAccountPreferencesService accountPreferences) { _defaults = defaults; _accountsPath = accountPreferences.AccountsDir; // Assure creation of the accounts path if (!Directory.Exists(_accountsPath)) { Directory.CreateDirectory(_accountsPath); } _userDatabase = new SQLiteConnection(Path.Combine(_accountsPath, "accounts.db")); _userDatabase.CreateTable <GitHubAccount>(); }
public GitHubAccountsService(IDefaultValueService defaults, IAccountPreferencesService accountPreferences) : base(defaults, accountPreferences) { }
public BitbucketAccountsService(IDefaultValueService defaults, IAccountPreferencesService accountPreferences) : base(defaults, accountPreferences) { }