Example #1
0
        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>();
        }
Example #2
0
        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)
 {
 }