75 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)
800Mode = mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1767Mode = mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2829Mode = context.Mode, 2879Mode = mode, 2956Mode = mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
1050Mode = mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
662Mode = context.Mode,
Aspire.Hosting.Tests (66)
Dcp\DcpExecutorTests.cs (48)
686mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5654Mode = ExecutableLaunchMode.NoDebug, 5939Mode = context.Mode 5985builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test"); 6040.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test") 6256mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 6296mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 6336mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 6380mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 7296mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 7492projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7532projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7588.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 7648.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 7700.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 7746Mode = mode, 7933Mode = mode, 8096mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 8180Mode = mode, 8295Mode = mode, 8353mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 8395.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") { Mode = mode }, "maui") 8455projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8482projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8529customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8579customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8627.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8746mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8792mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 8841return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 8882return new ExecutableLaunchConfiguration("test") { Mode = mode }; 9375.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 9405.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 9499mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9554mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9599mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9658mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9735mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9824return Task.FromResult(new ExecutableLaunchConfiguration("test") { Mode = mode }); 9867mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 9904mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 10014return new ExecutableLaunchConfiguration("custom") { Mode = mode }; 10098mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10159return new ExecutableLaunchConfiguration("test") { Mode = mode }; 10212.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 10255.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 11671projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 11763projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions");
Dcp\ResourceSnapshotBuilderTests.cs (2)
135Mode = ExecutableLaunchMode.NoDebug, 187Mode = ExecutableLaunchMode.NoDebug,
DebugSupportExtensionsTests.cs (12)
84return Task.FromResult(new TestGoLaunchConfiguration { Mode = context.Mode }); 159Mode = mode, 176.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }, "go"); 195return new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }; 215return Task.FromResult(new TestGoLaunchConfiguration { Mode = mode }); 236Mode = context.Mode, 258.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 277Mode = context.Mode, 353.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 415.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 429.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 486.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)
354Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode);
Aspire.Hosting.Dotnet.Tests (1)
DotnetProjectResourceTests.cs (1)
658Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
646Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5636Assert.Equal(expectedMode, plc!.Mode); 5679Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 6025Assert.Equal(ExecutableLaunchMode.Debug, config1.Mode); 7800Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 8866Assert.Equal(ExecutableLaunchMode.Debug, plc.Mode); 8907Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 9335Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 10275Assert.Equal(expectedMode, plc.Mode); 11699Assert.Equal(ExecutableLaunchMode.Debug, config.Mode);
DebugSupportExtensionsTests.cs (7)
95Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 108Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 166Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 181Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 200Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 245Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 292Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode);
ExecutableResourceBuilderExtensionTests.cs (4)
123Assert.Equal(launchConfig.Mode, producedLaunchConfig.Mode); 161Assert.Equal(asyncConfiguration.Mode, syncConfiguration.Mode);