73 writes to Mode
Aspire.Hosting (1)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
33Mode = mode,
Aspire.Hosting.Blazor (1)
BrowserDebuggerHelper.cs (1)
125Mode = mode,
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
749Mode = mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1759Mode = mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2842Mode = context.Mode, 2892Mode = mode, 2969Mode = mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
989Mode = mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
662Mode = context.Mode,
Aspire.Hosting.Tests (64)
Dcp\DcpExecutorTests.cs (48)
643mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5048Mode = ExecutableLaunchMode.NoDebug, 5333Mode = context.Mode 5379builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test"); 5434.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test") 5571mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5611mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5651mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 5695mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 6611mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 6807projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6847projectBuilder.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) 7061Mode = mode, 7248Mode = mode, 7411mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 7495Mode = mode, 7610Mode = mode, 7668mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 7710.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") { Mode = mode }, "maui") 7770projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7797projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7844customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7894customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7942.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8061mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8107mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8156return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 8197return 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") 8814mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8869mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8914mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8973mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9050mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9139return Task.FromResult(new ExecutableLaunchConfiguration("test") { Mode = mode }); 9182mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9219mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 9329return new ExecutableLaunchConfiguration("custom") { Mode = mode }; 9413mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9474return 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"); 10981projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 11073projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions");
DebugSupportExtensionsTests.cs (12)
84return Task.FromResult(new TestGoLaunchConfiguration { Mode = context.Mode }); 151Mode = mode, 168.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }, "go"); 187return new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }; 207return Task.FromResult(new TestGoLaunchConfiguration { Mode = mode }); 228Mode = context.Mode, 250.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 269Mode = 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"); 148return 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)
353Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
651Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
519Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5030Assert.Equal(expectedMode, plc!.Mode); 5073Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 5419Assert.Equal(ExecutableLaunchMode.Debug, config1.Mode); 7115Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 8181Assert.Equal(ExecutableLaunchMode.Debug, plc.Mode); 8222Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 8650Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 9590Assert.Equal(expectedMode, plc.Mode); 11009Assert.Equal(ExecutableLaunchMode.Debug, config.Mode);
DebugSupportExtensionsTests.cs (7)
95Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 106Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 158Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 173Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 192Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 237Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 284Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode);
ExecutableResourceBuilderExtensionTests.cs (4)
123Assert.Equal(launchConfig.Mode, producedLaunchConfig.Mode); 161Assert.Equal(asyncConfiguration.Mode, syncConfiguration.Mode);