public ScmBackup(IApiCaller apiCaller, IScmValidator validator, IBackupMaker backupMaker, IConfigBackupMaker configBackupMaker) { this.apiCaller = apiCaller; this.validator = validator; this.backupMaker = backupMaker; this.configBackupMaker = configBackupMaker; }
public Client() { SocketClient = new DiscordSocketClient(); _commands = new CommandService(); _services = new ServiceCollection() .AddSingleton(SocketClient) .AddSingleton(_commands) .BuildServiceProvider(); _backupHandler = new BackupMaker(new DirectoryInfo("D:/backup")); }
public BitbucketHoster( IConfigSourceValidator <BitbucketHoster> validator, IHosterApi <BitbucketHoster> api, IBackupMaker <BitbucketHoster> backupMaker) { if (validator == null) { throw new ArgumentNullException("validator"); } if (api == null) { throw new ArgumentNullException("api"); } if (backupMaker == null) { throw new ArgumentNullException("backupMaker"); } this.Validator = validator; this.Api = api; this.BackupMaker = backupMaker; }