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)
749
Mode
= mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1759
Mode
= mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2842
Mode
= context.Mode,
2892
Mode
= mode,
2969
Mode
= mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
989
Mode
= mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
662
Mode
= context.Mode,
Aspire.Hosting.Tests (64)
Dcp\DcpExecutorTests.cs (48)
643
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5048
Mode
= ExecutableLaunchMode.NoDebug,
5333
Mode
= context.Mode
5379
builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test");
5434
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode }, "test")
5571
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5611
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
5651
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
5695
mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode },
6611
mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode },
6807
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6847
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
6903
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
6963
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7015
.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) {
Mode
= mode }, launchConfigurationType)
7061
Mode
= mode,
7248
Mode
= mode,
7411
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
7495
Mode
= mode,
7610
Mode
= mode,
7668
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
7710
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") {
Mode
= mode }, "maui")
7770
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7797
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7844
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7894
customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
7942
.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
8061
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
8107
mode => new ProjectLaunchConfiguration { ProjectPath = projectPath,
Mode
= mode },
8156
return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath",
Mode
= mode, LaunchProfile = "async-profile" };
8197
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
8690
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
8720
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project")
8814
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8869
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8914
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
8973
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9050
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9139
return Task.FromResult(new ExecutableLaunchConfiguration("test") {
Mode
= mode });
9182
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9219
mode => new ExecutableLaunchConfiguration("custom") {
Mode
= mode },
9329
return new ExecutableLaunchConfiguration("custom") {
Mode
= mode };
9413
mode => new ExecutableLaunchConfiguration("test") {
Mode
= mode },
9474
return new ExecutableLaunchConfiguration("test") {
Mode
= mode };
9527
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path",
Mode
= mode }, "project");
9570
.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings",
Mode
= mode }, "project");
10981
projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") {
Mode
= mode }, "azure-functions");
11073
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");
405
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
419
.WithDebugSupport(mode => new TestGoLaunchConfiguration {
Mode
= mode }, "go");
468
.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)
519
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5030
Assert.Equal(expectedMode, plc!.
Mode
);
5073
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
5419
Assert.Equal(ExecutableLaunchMode.Debug, config1.
Mode
);
7115
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
8181
Assert.Equal(ExecutableLaunchMode.Debug, plc.
Mode
);
8222
Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.
Mode
);
8650
Assert.Equal(ExecutableLaunchMode.NoDebug, plc.
Mode
);
9590
Assert.Equal(expectedMode, plc.
Mode
);
11009
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
);