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