71 writes to Mode
Aspire.Hosting (1)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
30
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)
2177
Mode
= mode,
2214
Mode
= mode,
2291
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)
290
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
4246
Mode
= ExecutableLaunchMode.NoDebug,
4531
Mode
= context.Mode
4577
builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test");
4632
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test")
4769
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
4809
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
4849
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
4893
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
5809
mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode },
6005
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6045
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6101
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6161
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6213
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6259
Mode
= mode,
6446
Mode
= mode,
6609
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
6693
Mode
= mode,
6808
Mode
= mode,
6866
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
6908
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") {
Mode
= mode }, "maui")
6968
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6995
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7042
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7092
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7140
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7296
return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath",
Mode
= mode, LaunchProfile = "async-profile" };
7337
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
7830
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
7860
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project")
7954
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8009
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8054
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8113
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8190
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8279
return Task.FromResult(new ExecutableLaunchConfiguration("test") {
Mode
= mode });
8322
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8359
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
8469
return new ExecutableLaunchConfiguration("custom") {
Mode
= mode };
8553
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8614
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
8667
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode }, "project");
8710
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
9615
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
9707
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
DebugSupportExtensionsTests.cs (12)
84
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= context.Mode });
147
Mode
= mode,
164
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" }, "go");
183
return new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" };
203
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= mode });
224
Mode
= context.Mode,
246
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
265
Mode
= context.Mode,
341
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
365
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
379
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
428
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
ExecutableResourceBuilderExtensionTests.cs (4)
128
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("go") {
Mode
= mode }, "go");
133
return new ExecutableLaunchConfiguration("go") {
Mode
= mode };
159
() => executable.WithDebugSupport(mode => Task.FromResult(new ExecutableLaunchConfiguration("go") {
Mode
= mode }), "go"));
172
() => 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)
552
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)
4228
Assert.Equal(expectedMode, plc!.
Mode
);
4271
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
4617
Assert.Equal(ExecutableLaunchMode.Debug, config1.
Mode
);
6313
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
7321
Assert.Equal(ExecutableLaunchMode.Debug, plc.
Mode
);
7362
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
7790
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
8730
Assert.Equal(expectedMode, plc.
Mode
);
9643
Assert.Equal(ExecutableLaunchMode.Debug, config.
Mode
);
DebugSupportExtensionsTests.cs (7)
95
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
106
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
154
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
169
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
188
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
233
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
280
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
ExecutableResourceBuilderExtensionTests.cs (4)
108
Assert.Equal(launchConfig.
Mode
, producedLaunchConfig.
Mode
);
146
Assert.Equal(asyncConfiguration.
Mode
, syncConfiguration.
Mode
);