71 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)
751Mode = mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1762Mode = mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2844Mode = context.Mode, 2894Mode = mode, 2971Mode = 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)
291mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 4436Mode = ExecutableLaunchMode.NoDebug, 4721Mode = context.Mode 4767builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test"); 4822.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test") 4959mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 4999mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5039mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 5083mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 5999mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 6195projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6235projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6291.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 6351.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 6403.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 6449Mode = mode, 6636Mode = mode, 6799mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 6883Mode = mode, 6998Mode = mode, 7056mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 7098.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") { Mode = mode }, "maui") 7158projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7185projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7232customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7282customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7330.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7486return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 7527return new ExecutableLaunchConfiguration("test") { Mode = mode }; 8020.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 8050.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 8144mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8199mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8244mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8303mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8380mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8469return Task.FromResult(new ExecutableLaunchConfiguration("test") { Mode = mode }); 8512mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8549mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 8659return new ExecutableLaunchConfiguration("custom") { Mode = mode }; 8743mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8804return new ExecutableLaunchConfiguration("test") { Mode = mode }; 8857.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 8900.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 9805projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 9897projectBuilder.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"); 369.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 383.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 432.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)
587Assert.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)
4418Assert.Equal(expectedMode, plc!.Mode); 4461Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 4807Assert.Equal(ExecutableLaunchMode.Debug, config1.Mode); 6503Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 7511Assert.Equal(ExecutableLaunchMode.Debug, plc.Mode); 7552Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 7980Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 8920Assert.Equal(expectedMode, plc.Mode); 9833Assert.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);