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)
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 (64)
Dcp\DcpExecutorTests.cs (48)
644mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5049Mode = ExecutableLaunchMode.NoDebug, 5334Mode = context.Mode 5380builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test"); 5435.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test") 5572mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5612mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5652mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 5696mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 6612mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 6808projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6848projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 6904.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 6964.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 7016.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 7062Mode = mode, 7249Mode = mode, 7412mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 7496Mode = mode, 7611Mode = mode, 7669mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 7711.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") { Mode = mode }, "maui") 7771projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7798projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7845customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7895customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7943.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8062mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8108mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8157return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 8198return new ExecutableLaunchConfiguration("test") { Mode = mode }; 8691.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 8721.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 8815mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8870mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8915mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 8974mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9051mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9140return Task.FromResult(new ExecutableLaunchConfiguration("test") { Mode = mode }); 9183mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9220mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 9330return new ExecutableLaunchConfiguration("custom") { Mode = mode }; 9414mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9475return new ExecutableLaunchConfiguration("test") { Mode = mode }; 9528.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 9571.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 10956projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 11048projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions");
DebugSupportExtensionsTests.cs (12)
85return Task.FromResult(new TestGoLaunchConfiguration { Mode = context.Mode }); 152Mode = mode, 169.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }, "go"); 188return new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }; 208return Task.FromResult(new TestGoLaunchConfiguration { Mode = mode }); 229Mode = context.Mode, 251.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 270Mode = context.Mode, 346.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 402.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 416.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 465.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)
520Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5031Assert.Equal(expectedMode, plc!.Mode); 5074Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 5420Assert.Equal(ExecutableLaunchMode.Debug, config1.Mode); 7116Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 8182Assert.Equal(ExecutableLaunchMode.Debug, plc.Mode); 8223Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 8651Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 9591Assert.Equal(expectedMode, plc.Mode); 10984Assert.Equal(ExecutableLaunchMode.Debug, config.Mode);
DebugSupportExtensionsTests.cs (7)
96Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 107Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 159Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 174Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 193Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 238Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 285Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode);
ExecutableResourceBuilderExtensionTests.cs (4)
123Assert.Equal(launchConfig.Mode, producedLaunchConfig.Mode); 161Assert.Equal(asyncConfiguration.Mode, syncConfiguration.Mode);