73 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 (64)
Dcp\DcpExecutorTests.cs (48)
644
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5049
Mode
= ExecutableLaunchMode.NoDebug,
5334
Mode
= context.Mode
5380
builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test");
5435
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test")
5572
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5612
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5652
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
5696
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
6612
mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode },
6808
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6848
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6904
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6964
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7016
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7062
Mode
= mode,
7249
Mode
= mode,
7412
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
7496
Mode
= mode,
7611
Mode
= mode,
7669
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
7711
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") {
Mode
= mode }, "maui")
7771
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7798
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7845
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7895
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7943
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8062
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
8108
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
8157
return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath",
Mode
= mode, LaunchProfile = "async-profile" };
8198
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
8691
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
8721
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project")
8815
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8870
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8915
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8974
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9051
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9140
return Task.FromResult(new ExecutableLaunchConfiguration("test") {
Mode
= mode });
9183
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9220
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
9330
return new ExecutableLaunchConfiguration("custom") {
Mode
= mode };
9414
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9475
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
9528
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode }, "project");
9571
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
10956
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
11048
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
DebugSupportExtensionsTests.cs (12)
85
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= context.Mode });
152
Mode
= mode,
169
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" }, "go");
188
return new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" };
208
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= mode });
229
Mode
= context.Mode,
251
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
270
Mode
= context.Mode,
346
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
402
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
416
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
465
.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)
651
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)
5031
Assert.Equal(expectedMode, plc!.
Mode
);
5074
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
5420
Assert.Equal(ExecutableLaunchMode.Debug, config1.
Mode
);
7116
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
8182
Assert.Equal(ExecutableLaunchMode.Debug, plc.
Mode
);
8223
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
8651
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
9591
Assert.Equal(expectedMode, plc.
Mode
);
10984
Assert.Equal(ExecutableLaunchMode.Debug, config.
Mode
);
DebugSupportExtensionsTests.cs (7)
96
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
107
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
159
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
174
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
193
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
238
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
285
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
ExecutableResourceBuilderExtensionTests.cs (4)
123
Assert.Equal(launchConfig.
Mode
, producedLaunchConfig.
Mode
);
161
Assert.Equal(asyncConfiguration.
Mode
, syncConfiguration.
Mode
);