4 instantiations of DotNetWatchContext
dotnet-watch (1)
Program.cs (1)
211return new()
dotnet-watch.Tests (2)
Watch\BuildEvaluatorTests.cs (1)
21return new DotNetWatchContext()
Watch\NoRestoreTests.cs (1)
18return new()
Microsoft.DotNet.HotReload.Watch.Aspire (1)
DotNetWatchLauncher.cs (1)
51using var context = new DotNetWatchContext()
44 references to DotNetWatchContext
dotnet-watch (10)
Program.cs (7)
74var options = CommandLineOptions.Parse(args, parsingLoggerFactory.CreateLogger(DotNetWatchContext.DefaultLogComponentName), console.Out, out errorCode); 89var logger = loggerFactory.CreateLogger(DotNetWatchContext.DefaultLogComponentName); 180using var context = CreateContext(processRunner); 207internal DotNetWatchContext CreateContext(ProcessRunner processRunner) 209var logger = loggerFactory.CreateLogger(DotNetWatchContext.DefaultLogComponentName); 216BuildLogger = loggerFactory.CreateLogger(DotNetWatchContext.BuildLogComponentName), 246var buildLogger = loggerFactory.CreateLogger(DotNetWatchContext.BuildLogComponentName);
Watch\BuildEvaluator.cs (2)
23private readonly DotNetWatchContext _context; 32public BuildEvaluator(DotNetWatchContext context)
Watch\DotNetWatcher.cs (1)
13public static async Task WatchAsync(DotNetWatchContext context, CancellationToken shutdownCancellationToken)
dotnet-watch.Tests (18)
HotReload\RuntimeProcessLauncherTests.cs (1)
120var context = program.CreateContext(processRunner);
TestUtilities\TestBuildEvaluator.cs (1)
6internal class TestBuildEvaluator(DotNetWatchContext context, MSBuildFileSetFactory factory)
Watch\BuildEvaluatorTests.cs (5)
12private static DotNetWatchContext CreateContext(bool suppressMSBuildIncrementalism = false) 39var context = CreateContext(); 56var context = CreateContext(); 75var context = CreateContext(suppressMSBuildIncrementalism: true); 108var context = CreateContext();
Watch\NoRestoreTests.cs (11)
12private static DotNetWatchContext CreateContext(string[] args = null, EnvironmentOptions environmentOptions = null) 36var context = CreateContext(); 45var context = CreateContext(); 58var context = CreateContext([], TestOptions.GetEnvironmentOptions() with { SuppressMSBuildIncrementalism = true }); 68var context = CreateContext(["--no-restore"], TestOptions.GetEnvironmentOptions() with { SuppressMSBuildIncrementalism = true }); 78var context = CreateContext(["--", "--no-restore"]); 88var context = CreateContext(["--", "--", "--no-restore"]); 98var context = CreateContext(); 108var context = CreateContext(["run", "-f", ToolsetInfo.CurrentTargetFramework]); 118var context = CreateContext(["test", "--filter SomeFilter"]); 128var context = CreateContext(["pack"]);
Microsoft.DotNet.HotReload.Watch (13)
AppModels\BlazorWebAssemblyAppModel.cs (1)
15internal sealed class BlazorWebAssemblyAppModel(DotNetWatchContext context, ProjectGraphNode clientProject)
AppModels\BlazorWebAssemblyHostedAppModel.cs (1)
17internal sealed class BlazorWebAssemblyHostedAppModel(DotNetWatchContext context, ProjectGraphNode clientProject, ProjectGraphNode serverProject)
AppModels\HotReloadAppModel.cs (1)
23public static HotReloadAppModel InferFromProject(DotNetWatchContext context, ProjectGraphNode projectNode)
AppModels\WebApplicationAppModel.cs (2)
11internal abstract class WebApplicationAppModel(DotNetWatchContext context) : HotReloadAppModel 17public DotNetWatchContext Context => context;
AppModels\WebServerAppModel.cs (1)
10internal sealed class WebServerAppModel(DotNetWatchContext context, ProjectGraphNode serverProject)
Context\DotNetWatchContext.cs (2)
11public const string DefaultLogComponentName = $"{nameof(DotNetWatchContext)}:Default"; 12public const string BuildLogComponentName = $"{nameof(DotNetWatchContext)}:Build";
HotReload\HotReloadDotNetWatcher.cs (2)
22private readonly DotNetWatchContext _context; 27public HotReloadDotNetWatcher(DotNetWatchContext context, IConsole console, IRuntimeProcessLauncherFactory? runtimeProcessLauncherFactory)
Process\ProjectLauncher.cs (1)
13DotNetWatchContext context,
UI\IReporter.cs (2)
172.Add(DotNetWatchContext.DefaultLogComponentName, Emoji.Watch) 173.Add(DotNetWatchContext.BuildLogComponentName, Emoji.Build)
Microsoft.DotNet.HotReload.Watch.Aspire (3)
DotNetWatchLauncher.cs (3)
49var logger = loggerFactory.CreateLogger(DotNetWatchContext.DefaultLogComponentName); 51using var context = new DotNetWatchContext() 56BuildLogger = loggerFactory.CreateLogger(DotNetWatchContext.BuildLogComponentName),