71 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)
751
Mode
= mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1762
Mode
= mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2844
Mode
= context.Mode,
2894
Mode
= mode,
2971
Mode
= mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
991
Mode
= mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
665
Mode
= context.Mode,
Aspire.Hosting.Tests (62)
Dcp\DcpExecutorTests.cs (46)
291
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
4436
Mode
= ExecutableLaunchMode.NoDebug,
4721
Mode
= context.Mode
4767
builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test");
4822
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test")
4959
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
4999
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5039
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
5083
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
5999
mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode },
6195
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6235
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6291
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6351
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6403
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6449
Mode
= mode,
6636
Mode
= mode,
6799
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
6883
Mode
= mode,
6998
Mode
= mode,
7056
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
7098
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") {
Mode
= mode }, "maui")
7158
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7185
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7232
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7282
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7330
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7486
return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath",
Mode
= mode, LaunchProfile = "async-profile" };
7527
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
8020
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
8050
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project")
8144
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8199
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8244
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8303
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8380
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8469
return Task.FromResult(new ExecutableLaunchConfiguration("test") {
Mode
= mode });
8512
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8549
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
8659
return new ExecutableLaunchConfiguration("custom") {
Mode
= mode };
8743
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8804
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
8857
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode }, "project");
8900
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
9805
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
9897
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
DebugSupportExtensionsTests.cs (12)
84
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= context.Mode });
151
Mode
= mode,
168
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" }, "go");
187
return new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" };
207
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= mode });
228
Mode
= context.Mode,
250
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
269
Mode
= context.Mode,
345
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
369
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
383
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
432
.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)
353
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
587
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
520
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
4418
Assert.Equal(expectedMode, plc!.
Mode
);
4461
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
4807
Assert.Equal(ExecutableLaunchMode.Debug, config1.
Mode
);
6503
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
7511
Assert.Equal(ExecutableLaunchMode.Debug, plc.
Mode
);
7552
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
7980
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
8920
Assert.Equal(expectedMode, plc.
Mode
);
9833
Assert.Equal(ExecutableLaunchMode.Debug, config.
Mode
);
DebugSupportExtensionsTests.cs (7)
95
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
106
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
158
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
173
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
192
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
237
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
284
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
ExecutableResourceBuilderExtensionTests.cs (4)
123
Assert.Equal(launchConfig.
Mode
, producedLaunchConfig.
Mode
);
161
Assert.Equal(asyncConfiguration.
Mode
, syncConfiguration.
Mode
);