public AgentUploadInfoController( IDbConnectionFactory connectionFactory, RegistryConfig registryConfig, RepositoryNameFactory repositoryNameFactory) { _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory)); _registryConfig = registryConfig ?? throw new ArgumentNullException(nameof(registryConfig)); _repositoryNameFactory = repositoryNameFactory; }
public ApplicationDownloadInfoController( IDbConnectionFactory connectionFactory, ILogger <ApplicationDownloadInfoController> logger, RegistryConfig registryConfig, RepositoryNameFactory repositoryNameFactory) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _registryConfig = registryConfig ?? throw new ArgumentNullException(nameof(registryConfig)); _repositoryNameFactory = repositoryNameFactory ?? throw new ArgumentNullException(nameof(repositoryNameFactory)); _connectionFactory = connectionFactory ?? throw new ArgumentNullException(nameof(connectionFactory)); }