75 writes to Mode
Aspire.Hosting (1)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
33
Mode
= mode,
Aspire.Hosting.Blazor (1)
BrowserDebuggerHelper.cs (1)
125
Mode
= mode,
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
800
Mode
= mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1767
Mode
= mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2829
Mode
= context.Mode,
2879
Mode
= mode,
2956
Mode
= mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
1050
Mode
= mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
662
Mode
= context.Mode,
Aspire.Hosting.Tests (66)
Dcp\DcpExecutorTests.cs (48)
686
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5654
Mode
= ExecutableLaunchMode.NoDebug,
5939
Mode
= context.Mode
5985
builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test");
6040
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test")
6256
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
6296
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
6336
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
6380
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
7296
mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode },
7492
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7532
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7588
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7648
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7700
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7746
Mode
= mode,
7933
Mode
= mode,
8096
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
8180
Mode
= mode,
8295
Mode
= mode,
8353
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
8395
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") {
Mode
= mode }, "maui")
8455
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8482
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8529
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8579
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8627
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8746
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
8792
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
8841
return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath",
Mode
= mode, LaunchProfile = "async-profile" };
8882
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
9375
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
9405
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project")
9499
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9554
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9599
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9658
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9735
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9824
return Task.FromResult(new ExecutableLaunchConfiguration("test") {
Mode
= mode });
9867
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9904
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
10014
return new ExecutableLaunchConfiguration("custom") {
Mode
= mode };
10098
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10159
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
10212
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode }, "project");
10255
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
11671
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
11763
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
Dcp\ResourceSnapshotBuilderTests.cs (2)
135
Mode
= ExecutableLaunchMode.NoDebug,
187
Mode
= ExecutableLaunchMode.NoDebug,
DebugSupportExtensionsTests.cs (12)
84
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= context.Mode });
159
Mode
= mode,
176
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" }, "go");
195
return new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" };
215
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= mode });
236
Mode
= context.Mode,
258
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
277
Mode
= context.Mode,
353
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
415
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
429
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
486
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
ExecutableResourceBuilderExtensionTests.cs (4)
143
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("go") {
Mode
= mode }, "go");
148
return new ExecutableLaunchConfiguration("go") {
Mode
= mode };
174
() => executable.WithDebugSupport(mode => Task.FromResult(new ExecutableLaunchConfiguration("go") {
Mode
= mode }), "go"));
187
() => executable.WithDebugSupport(mode => ValueTask.FromResult(new ExecutableLaunchConfiguration("go") {
Mode
= mode }), "go"));
23 references to Mode
Aspire.Hosting.Blazor.Tests (1)
WithBlazorAppTests.cs (1)
354
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
658
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
646
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5636
Assert.Equal(expectedMode, plc!.
Mode
);
5679
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
6025
Assert.Equal(ExecutableLaunchMode.Debug, config1.
Mode
);
7800
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
8866
Assert.Equal(ExecutableLaunchMode.Debug, plc.
Mode
);
8907
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
9335
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
10275
Assert.Equal(expectedMode, plc.
Mode
);
11699
Assert.Equal(ExecutableLaunchMode.Debug, config.
Mode
);
DebugSupportExtensionsTests.cs (7)
95
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
108
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
166
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
181
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
200
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
245
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
292
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
ExecutableResourceBuilderExtensionTests.cs (4)
123
Assert.Equal(launchConfig.
Mode
, producedLaunchConfig.
Mode
);
161
Assert.Equal(asyncConfiguration.
Mode
, syncConfiguration.
Mode
);