1 instantiation of LaunchSettingsProfile
dotnet-watch (1)
Browser\BrowserLauncher.cs (1)
141
? null : LaunchSettingsProfile.ReadLaunchProfile(projectOptions.ProjectPath, projectOptions.LaunchProfileName, logger)) ??
new
();
15 references to LaunchSettingsProfile
dotnet-watch (9)
Browser\BrowserLauncher.cs (4)
28
if (!CanLaunchBrowser(projectOptions, out
var
launchProfile))
112
private bool CanLaunchBrowser(ProjectOptions projectOptions, [NotNullWhen(true)] out
LaunchSettingsProfile
? launchProfile)
138
private
LaunchSettingsProfile
GetLaunchProfile(ProjectOptions projectOptions)
141
? null :
LaunchSettingsProfile
.ReadLaunchProfile(projectOptions.ProjectPath, projectOptions.LaunchProfileName, logger)) ?? new();
Process\LaunchSettingsProfile.cs (5)
29
internal static
LaunchSettingsProfile
? ReadLaunchProfile(string projectPath, string? launchProfileName, ILogger logger)
77
var
namedProfile = launchSettings?.Profiles?.FirstOrDefault(kvp =>
101
private static
LaunchSettingsProfile
? ReadDefaultLaunchProfile(LaunchSettingsJson? launchSettings, ILogger logger)
117
var
defaultProfile = launchSettings.Profiles[defaultProfileKey];
124
public OrderedDictionary<string,
LaunchSettingsProfile
>? Profiles { get; set; }
dotnet-watch.Tests (6)
Process\LaunchSettingsProfileTest.cs (6)
53
var
expected =
LaunchSettingsProfile
.ReadLaunchProfile(projectPath, launchProfileName: "http", _logger);
57
expected =
LaunchSettingsProfile
.ReadLaunchProfile(projectPath, "https", _logger);
61
expected =
LaunchSettingsProfile
.ReadLaunchProfile(projectPath, "notfound", _logger);
86
var
expected =
LaunchSettingsProfile
.ReadLaunchProfile(projectPath, launchProfileName: null, _logger);