84 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)
784
Mode
= mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1767
Mode
= mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2865
Mode
= context.Mode,
2915
Mode
= mode,
2992
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 (75)
Dcp\DcpExecutorTests.cs (52)
792
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5789
Mode
= ExecutableLaunchMode.NoDebug,
6074
Mode
= context.Mode
6120
builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test");
6175
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test")
6391
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
6431
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
6471
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
6515
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
7431
mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode },
7627
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7669
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7720
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7823
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7863
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("custom-debug") {
Mode
= mode }, "custom-debug");
7995
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
8055
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
8107
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
8153
Mode
= mode,
8340
Mode
= mode,
8503
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
8587
Mode
= mode,
8702
Mode
= mode,
8760
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
8802
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") {
Mode
= mode }, "maui")
8862
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8889
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8936
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8986
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
9034
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
9194
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
9240
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
9289
return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath",
Mode
= mode, LaunchProfile = "async-profile" };
9330
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
9456
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
9902
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
9932
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project")
10026
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10081
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10126
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10185
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10262
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10351
return Task.FromResult(new ExecutableLaunchConfiguration("test") {
Mode
= mode });
10394
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10431
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
10541
return new ExecutableLaunchConfiguration("custom") {
Mode
= mode };
10625
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
10686
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
10739
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode }, "project");
10782
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
12837
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
12929
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
Dcp\ResourceSnapshotBuilderTests.cs (4)
143
Mode
= ExecutableLaunchMode.NoDebug,
194
Mode
= ExecutableLaunchMode.NoDebug,
199
Mode
= ExecutableLaunchMode.NoDebug
250
Mode
= ExecutableLaunchMode.NoDebug,
DebugSupportExtensionsTests.cs (15)
83
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= context.Mode });
158
Mode
= mode,
175
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" }, "go");
194
return new TestGoLaunchConfiguration {
Mode
= mode, Package = "./cmd/api" };
214
return Task.FromResult(new TestGoLaunchConfiguration {
Mode
= mode });
235
Mode
= context.Mode,
257
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
276
Mode
= context.Mode,
352
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
414
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
434
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
456
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
480
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
503
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
560
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
ExecutableResourceBuilderExtensionTests.cs (4)
142
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("go") {
Mode
= mode }, "go");
147
return new ExecutableLaunchConfiguration("go") {
Mode
= mode };
173
() => executable.WithDebugSupport(mode => Task.FromResult(new ExecutableLaunchConfiguration("go") {
Mode
= mode }), "go"));
186
() => 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)
657
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
645
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5771
Assert.Equal(expectedMode, plc!.
Mode
);
5814
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
6160
Assert.Equal(ExecutableLaunchMode.Debug, config1.
Mode
);
8207
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
9314
Assert.Equal(ExecutableLaunchMode.Debug, plc.
Mode
);
9355
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
9862
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
10802
Assert.Equal(expectedMode, plc.
Mode
);
12865
Assert.Equal(ExecutableLaunchMode.Debug, config.
Mode
);
DebugSupportExtensionsTests.cs (7)
94
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
107
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
165
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
180
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
199
Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.
Mode
);
244
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
291
Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.
Mode
);
ExecutableResourceBuilderExtensionTests.cs (4)
122
Assert.Equal(launchConfig.
Mode
, producedLaunchConfig.
Mode
);
160
Assert.Equal(asyncConfiguration.
Mode
, syncConfiguration.
Mode
);