2 implementations of IReporter
dotnet-aot (1)
parent\dotnet\Commands\Workload\Install\NullReporter.cs (1)
8
internal class NullReporter :
IReporter
Microsoft.DotNet.Cli.Utils (1)
Reporter.cs (1)
7
public class Reporter :
IReporter
70 references to IReporter
dotnet-aot (30)
parent\dotnet\Commands\Sdk\Check\BundleOutputWriter.cs (2)
15
IReporter
reporter)
21
protected readonly
IReporter
_reporter = reporter;
parent\dotnet\Commands\Sdk\Check\RuntimeOutputWriter.cs (1)
14
IReporter
reporter) : BundleOutputWriter(productCollection, productCollectionProvider, reporter)
parent\dotnet\Commands\Sdk\Check\SdkCheckCommand.cs (2)
20
private readonly
IReporter
_reporter;
29
IReporter
reporter = null,
parent\dotnet\Commands\Sdk\Check\SdkOutputWriter.cs (1)
14
IReporter
reporter) : BundleOutputWriter(productCollection, productCollectionProvider, reporter)
parent\dotnet\Commands\Solution\Migrate\SolutionMigrateCommand.cs (2)
16
private readonly
IReporter
_reporter;
18
public SolutionMigrateCommand(ParseResult parseResult,
IReporter
reporter = null)
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (2)
17
private readonly
IReporter
_reporter;
23
IReporter
reporter = null)
parent\dotnet\Commands\Tool\Search\SearchResultPrinter.cs (2)
11
internal class SearchResultPrinter(
IReporter
reporter)
13
private readonly
IReporter
_reporter = reporter ?? throw new ArgumentNullException(nameof(reporter));
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
19
private readonly
IReporter
_reporter;
28
IReporter
reporter = null)
parent\dotnet\Commands\Workload\Install\WorkloadAdvertisingManifestUpdater.cs (2)
42
IReporter
reporter,
53
private readonly
IReporter
_reporter = reporter;
parent\dotnet\Commands\Workload\WorkloadInfoHelper.cs (2)
38
IReporter
? reporter = null,
160
internal void ShowWorkloadsInfo(
IReporter
? reporter = null, string? dotnetDir = null, bool showVersion = true)
parent\dotnet\FirstRunExperience.cs (1)
124
var
reporter = Reporter.Error;
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (3)
38
private readonly
IReporter
_reporter;
69
IReporter
reporter = null,
142
IReporter
reporter = null,
parent\dotnet\ShellShim\LinuxEnvironmentPath.cs (2)
16
private readonly
IReporter
_reporter;
26
IReporter
reporter,
parent\dotnet\ShellShim\OsxBashEnvironmentPath.cs (2)
14
IReporter
reporter,
23
private readonly
IReporter
_reporter = reporter ?? throw new ArgumentNullException(nameof(reporter));
parent\dotnet\ShellShim\OsxZshEnvironmentPathInstruction.cs (2)
13
IReporter
reporter,
20
private readonly
IReporter
_reporter = reporter ?? throw new ArgumentNullException(nameof(reporter));
parent\dotnet\ShellShim\WindowsEnvironmentPath.cs (2)
15
IReporter
reporter) : IEnvironmentPath
17
private readonly
IReporter
_reporter = reporter ?? throw new ArgumentNullException(nameof(reporter));
Microsoft.DotNet.Cli.Utils (9)
Reporter.cs (9)
17
private static
IReporter
s_errorReporter = s_consoleErrReporter;
18
private static
IReporter
s_outputReporter = s_consoleOutReporter;
19
private static
IReporter
s_verboseReporter = s_consoleOutReporter;
37
public static
IReporter
Output { get; private set; } = NullReporter;
38
public static
IReporter
Error { get; private set; } = NullReporter;
39
public static
IReporter
Verbose { get; private set; } = NullReporter;
59
public static void SetOutput(
IReporter
reporter)
72
public static void SetError(
IReporter
reporter)
85
public static void SetVerbose(
IReporter
reporter)
Microsoft.DotNet.Configurer (2)
DotnetFirstTimeUseConfigurer.cs (2)
11
private readonly
IReporter
_reporter;
26
IReporter
reporter,
Microsoft.TemplateEngine.Cli (29)
Commands\create\InstantiateCommand.cs (8)
93
internal static void HandleNoMatchingTemplateGroup(InstantiateCommandArgs instantiateArgs, IEnumerable<TemplateGroup> templateGroups,
IReporter
reporter)
110
IReporter
reporter,
210
IReporter
reporter)
225
IReporter
reporter)
275
IReporter
reporter,
425
private static void SuggestTypoCorrections(InstantiateCommandArgs instantiateArgs, IEnumerable<TemplateGroup> templateGroups,
IReporter
reporter)
482
private static void WriteListCommandExample(InstantiateCommandArgs instantiateArgs,
IReporter
reporter)
503
private static void WriteSearchCommandExample(InstantiateCommandArgs instantiateArgs,
IReporter
reporter)
Commands\create\InstantiateCommand.Help.cs (1)
113
IReporter
reporter,
Commands\create\InstantiateCommand.NoMatchHandling.cs (1)
129
IReporter
reporter)
Commands\create\TemplateCommand.cs (1)
238
var
reporter = templateArgs.IsForceFlagSpecified ? Reporter.Output : Reporter.Error;
IReporterExtensions.cs (4)
20
internal static void WriteCommand(this
IReporter
reporter, string command, int indentLevel = 0)
28
internal static void WriteCommandOutput(this
IReporter
reporter, Process process)
47
internal static void WriteStdOut(this
IReporter
reporter, string output)
56
internal static void WriteStdErr(this
IReporter
reporter, string output)
PostActionDispatcher.cs (1)
249
IReporter
stream = useErrorOutput ? Reporter.Error : Reporter.Output;
TabularOutput\TemplateGroupDisplay.cs (3)
30
IReporter
reporter,
57
IReporter
reporter,
227
IReporter
reporter)
TemplatePackageCoordinator.cs (5)
480
internal void DisplayNuGetPackageMetadata(NugetPackageMetadata packageMetadata,
IReporter
reporter)
542
internal void DisplayLocalPackageMetadata(IManagedTemplatePackage package,
IReporter
reporter)
571
internal void DisplayPackageTemplateList(IReadOnlyList<TemplateGroupTableRow> templatesToDisplay,
IReporter
reporter)
601
private void WriteIfNotNull(string metadataName, string? metadataEntry,
IReporter
reporter, int indent = 0)
631
IReporter
reporter = args.Force ? Reporter.Output : Reporter.Error;
TemplatePackageDisplay.cs (5)
32
private readonly
IReporter
_reporterOutput;
33
private readonly
IReporter
_reporterError;
36
IReporter
reporterOutput,
37
IReporter
reporterError)
380
private void DisplayVulnerabilityInfo(IReadOnlyList<VulnerabilityInfo> vulnerabilities,
IReporter
reporter)