public ValidateLicenseCommand([NotNull] ILicenseDialog licenseDialog, [NotNull] IRemoteMetaData remoteMetaData, [NotNull] ILocalMetaData localMetaData, [NotNull] ICache cache, [NotNull] ILogger logger, [NotNull] IIssueReporter issueReporter) { if (licenseDialog == null) { throw new ArgumentNullException("licenseDialog"); } if (remoteMetaData == null) { throw new ArgumentNullException("remoteMetaData"); } if (localMetaData == null) { throw new ArgumentNullException("localMetaData"); } if (cache == null) { throw new ArgumentNullException("cache"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (issueReporter == null) { throw new ArgumentNullException("issueReporter"); } _licenseDialog = licenseDialog; _remoteMetaData = remoteMetaData; _localMetaData = localMetaData; _cache = cache; _logger = logger; _issueReporter = issueReporter; }
public ValidateLicenseCommand(ILicenseDialog licenseDialog, IRemoteMetaData remoteMetaData, ICache cache) { Checks.ArgumentNotNull(licenseDialog, "licenseDialog"); Checks.ArgumentNotNull(remoteMetaData, "remoteMetaData"); Checks.ArgumentNotNull(cache, "cache"); DebugLogger.LogConstructor(); _licenseDialog = licenseDialog; _remoteMetaData = remoteMetaData; _cache = cache; }
public App([NotNull] string appDataPath, [NotNull] ILocalDirectory localDirectory, [NotNull] ILocalMetaData localMetaData, [NotNull] IDownloadDirectory downloadDirectory, [NotNull] IRemoteData remoteData, [NotNull] IRemoteMetaData remoteMetaData, int overrideLatestVersionId) { if (string.IsNullOrEmpty(appDataPath)) { throw new ArgumentException("Value cannot be null or empty.", "appDataPath"); } if (localDirectory == null) { throw new ArgumentNullException("localDirectory"); } if (localMetaData == null) { throw new ArgumentNullException("localMetaData"); } if (downloadDirectory == null) { throw new ArgumentNullException("downloadDirectory"); } if (remoteData == null) { throw new ArgumentNullException("remoteData"); } if (remoteMetaData == null) { throw new ArgumentNullException("remoteMetaData"); } LocalDirectory = localDirectory; LocalMetaData = localMetaData; DownloadDirectory = downloadDirectory; RemoteData = remoteData; RemoteMetaData = remoteMetaData; _overrideLatestVersionId = overrideLatestVersionId; }
public App(ILocalDirectory localDirectory, ILocalMetaData localMetaData, ITemporaryDirectory temporaryDirectory, IDownloadDirectory downloadDirectory, IRemoteData remoteData, IRemoteMetaData remoteMetaData, int overrideLatestVersionId) { Checks.ArgumentNotNull(localDirectory, "localData"); Checks.ArgumentNotNull(localMetaData, "localMetaData"); Checks.ArgumentNotNull(temporaryDirectory, "temporaryData"); Checks.ArgumentNotNull(downloadDirectory, "downloadData"); Checks.ArgumentNotNull(remoteData, "remoteData"); Checks.ArgumentNotNull(remoteMetaData, "remoteMetaData"); LocalDirectory = localDirectory; LocalMetaData = localMetaData; TemporaryDirectory = temporaryDirectory; DownloadDirectory = downloadDirectory; RemoteData = remoteData; RemoteMetaData = remoteMetaData; _overrideLatestVersionId = overrideLatestVersionId; }
public InstallDiffCommand([NotNull] string packagePath, string packageMetaPath, string packagePassword, int versionId, [NotNull] ILocalDirectory localData, [NotNull] ILocalMetaData localMetaData, [NotNull] IRemoteMetaData remoteMetaData) { if (packagePath == null) { throw new ArgumentNullException("packagePath"); } if (versionId <= 0) { throw new ArgumentOutOfRangeException("versionId"); } if (localData == null) { throw new ArgumentNullException("localData"); } if (localMetaData == null) { throw new ArgumentNullException("localMetaData"); } if (remoteMetaData == null) { throw new ArgumentNullException("remoteMetaData"); } _logger = PatcherLogManager.DefaultLogger; _packagePath = packagePath; _packageMetaPath = packageMetaPath; _packagePassword = packagePassword; _versionId = versionId; _localData = localData; _localMetaData = localMetaData; _remoteMetaData = remoteMetaData; }