| File: CommandArgs\LocalsArgs.cs | Web Access |
| Project: src\nuget-client\src\NuGet.Core\NuGet.Commands\NuGet.Commands.csproj (NuGet.Commands) |
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. #nullable disable using System; using System.Collections.Generic; using NuGet.Configuration; namespace NuGet.Commands { public class LocalsArgs { public delegate void Log(string message); public bool Clear { get; } public bool List { get; } public IList<string> Arguments { get; } public ISettings Settings { get; } public Log LogError { get; } public Log LogInformation { get; } public LocalsArgs(IList<string> arguments, ISettings settings, Log logInformation, Log logError, bool clear, bool list) { if (arguments == null) { throw new ArgumentNullException(nameof(arguments)); } else if (settings == null) { throw new ArgumentNullException(nameof(settings)); } else if (logInformation == null) { throw new ArgumentNullException(nameof(logInformation)); } else if (logError == null) { throw new ArgumentNullException(nameof(logError)); } Arguments = arguments; Settings = settings; Clear = clear; List = list; LogError = logError; LogInformation = logInformation; } } }