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