71 writes to Mode
Aspire.Hosting (1)
ApplicationModel\ProjectLaunchConfigurationFactory.cs (1)
30Mode = mode,
Aspire.Hosting.Blazor (1)
BrowserDebuggerHelper.cs (1)
125Mode = mode,
Aspire.Hosting.Go (1)
GoHostingExtensions.cs (1)
751Mode = mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1762Mode = mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2177Mode = mode, 2214Mode = mode, 2291Mode = mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
991Mode = mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
665Mode = context.Mode,
Aspire.Hosting.Tests (62)
Dcp\DcpExecutorTests.cs (46)
290mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 4246Mode = ExecutableLaunchMode.NoDebug, 4531Mode = context.Mode 4577builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test"); 4632.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test") 4769mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 4809mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 4849mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 4893mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 5809mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 6005projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6045projectBuilder.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) 6259Mode = mode, 6446Mode = mode, 6609mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 6693Mode = mode, 6808Mode = mode, 6866mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 6908.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") { Mode = mode }, "maui") 6968projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6995projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7042customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7092customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7140.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7296return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 7337return 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") 7954mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8009mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8054mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8113mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8190mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8279return Task.FromResult(new ExecutableLaunchConfiguration("test") { Mode = mode }); 8322mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8359mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 8469return new ExecutableLaunchConfiguration("custom") { Mode = mode }; 8553mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8614return 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"); 9615projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 9707projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions");
DebugSupportExtensionsTests.cs (12)
84return Task.FromResult(new TestGoLaunchConfiguration { Mode = context.Mode }); 147Mode = mode, 164.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }, "go"); 183return new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }; 203return Task.FromResult(new TestGoLaunchConfiguration { Mode = mode }); 224Mode = context.Mode, 246.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 265Mode = 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"); 133return 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)
353Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
552Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
520Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
4228Assert.Equal(expectedMode, plc!.Mode); 4271Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 4617Assert.Equal(ExecutableLaunchMode.Debug, config1.Mode); 6313Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 7321Assert.Equal(ExecutableLaunchMode.Debug, plc.Mode); 7362Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 7790Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 8730Assert.Equal(expectedMode, plc.Mode); 9643Assert.Equal(ExecutableLaunchMode.Debug, config.Mode);
DebugSupportExtensionsTests.cs (7)
95Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 106Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 154Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 169Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 188Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 233Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 280Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode);
ExecutableResourceBuilderExtensionTests.cs (4)
108Assert.Equal(launchConfig.Mode, producedLaunchConfig.Mode); 146Assert.Equal(asyncConfiguration.Mode, syncConfiguration.Mode);