3 instantiations of DotNetWatchContext
dotnet-watch (1)
Program.cs (1)
232return new()
dotnet-watch.Tests (2)
Watch\BuildEvaluatorTests.cs (1)
19return new DotNetWatchContext()
Watch\NoRestoreTests.cs (1)
16return new()
39 references to DotNetWatchContext
dotnet-watch (21)
CommandLine\DotNetWatchContext.cs (2)
11public const string DefaultLogComponentName = $"{nameof(DotNetWatchContext)}:Default"; 12public const string BuildLogComponentName = $"{nameof(DotNetWatchContext)}:Build";
HotReload\AppModels\BlazorWebAssemblyAppModel.cs (1)
15internal sealed class BlazorWebAssemblyAppModel(DotNetWatchContext context, ProjectGraphNode clientProject)
HotReload\AppModels\BlazorWebAssemblyHostedAppModel.cs (1)
17internal sealed class BlazorWebAssemblyHostedAppModel(DotNetWatchContext context, ProjectGraphNode clientProject, ProjectGraphNode serverProject)
HotReload\AppModels\HotReloadAppModel.cs (1)
23public static HotReloadAppModel InferFromProject(DotNetWatchContext context, ProjectGraphNode projectNode)
HotReload\AppModels\WebApplicationAppModel.cs (2)
11internal abstract class WebApplicationAppModel(DotNetWatchContext context) : HotReloadAppModel 17public DotNetWatchContext Context => context;
HotReload\AppModels\WebServerAppModel.cs (1)
10internal sealed class WebServerAppModel(DotNetWatchContext context, ProjectGraphNode serverProject)
HotReload\HotReloadDotNetWatcher.cs (2)
22private readonly DotNetWatchContext _context; 26public HotReloadDotNetWatcher(DotNetWatchContext context, IConsole console, IRuntimeProcessLauncherFactory? runtimeProcessLauncherFactory)
Process\ProjectLauncher.cs (1)
13DotNetWatchContext context,
Program.cs (5)
196using var context = CreateContext(processRunner); 228internal DotNetWatchContext CreateContext(ProcessRunner processRunner) 230var logger = loggerFactory.CreateLogger(DotNetWatchContext.DefaultLogComponentName); 237BuildLogger = loggerFactory.CreateLogger(DotNetWatchContext.BuildLogComponentName), 267var buildLogger = loggerFactory.CreateLogger(DotNetWatchContext.BuildLogComponentName);
UI\IReporter.cs (2)
173.Add(DotNetWatchContext.DefaultLogComponentName, Emoji.Watch) 174.Add(DotNetWatchContext.BuildLogComponentName, Emoji.Build)
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)
119var 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) 37var context = CreateContext(); 54var context = CreateContext(); 73var context = CreateContext(suppressMSBuildIncrementalism: true); 106var context = CreateContext();
Watch\NoRestoreTests.cs (11)
12private static DotNetWatchContext CreateContext(string[] args = null, EnvironmentOptions environmentOptions = null) 34var context = CreateContext(); 43var context = CreateContext(); 56var context = CreateContext([], TestOptions.GetEnvironmentOptions() with { SuppressMSBuildIncrementalism = true }); 66var context = CreateContext(["--no-restore"], TestOptions.GetEnvironmentOptions() with { SuppressMSBuildIncrementalism = true }); 76var context = CreateContext(["--", "--no-restore"]); 86var context = CreateContext(["--", "--", "--no-restore"]); 96var context = CreateContext(); 106var context = CreateContext(["run", "-f", ToolsetInfo.CurrentTargetFramework]); 116var context = CreateContext(["test", "--filter SomeFilter"]); 126var context = CreateContext(["pack"]);