84 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)
784Mode = mode,
Aspire.Hosting.Java (1)
JavaHostingExtensions.cs (1)
1767Mode = mode,
Aspire.Hosting.JavaScript (3)
JavaScriptHostingExtensions.cs (3)
2865Mode = context.Mode, 2915Mode = mode, 2992Mode = mode,
Aspire.Hosting.Python (1)
PythonAppResourceBuilderExtensions.cs (1)
1050Mode = mode,
Aspire.Hosting.Rust (1)
RustHostingExtensions.cs (1)
662Mode = context.Mode,
Aspire.Hosting.Tests (75)
Dcp\DcpExecutorTests.cs (52)
792mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 5789Mode = ExecutableLaunchMode.NoDebug, 6074Mode = context.Mode 6120builder.AddResource(debuggableExecutable).WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test"); 6175.WithDebugSupport(mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, "test") 6391mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 6431mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 6471mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 6515mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 7431mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, 7627projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7669.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7720projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7823projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 7863projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("custom-debug") { Mode = mode }, "custom-debug"); 7995.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 8055.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 8107.WithDebugSupport(mode => new ExecutableLaunchConfiguration(launchConfigurationType) { Mode = mode }, launchConfigurationType) 8153Mode = mode, 8340Mode = mode, 8503mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 8587Mode = mode, 8702Mode = mode, 8760mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 8802.WithDebugSupport(mode => new ExecutableLaunchConfiguration("maui") { Mode = mode }, "maui") 8862projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8889projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8936customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 8986customProject.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 9034.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 9194mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 9240mode => new ProjectLaunchConfiguration { ProjectPath = projectPath, Mode = mode }, 9289return new ProjectLaunchConfiguration { ProjectPath = "AsyncProducerPath", Mode = mode, LaunchProfile = "async-profile" }; 9330return new ExecutableLaunchConfiguration("test") { Mode = mode }; 9456mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 9902.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 9932.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project") 10026mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10081mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10126mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10185mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10262mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10351return Task.FromResult(new ExecutableLaunchConfiguration("test") { Mode = mode }); 10394mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10431mode => new ExecutableLaunchConfiguration("custom") { Mode = mode }, 10541return new ExecutableLaunchConfiguration("custom") { Mode = mode }; 10625mode => new ExecutableLaunchConfiguration("test") { Mode = mode }, 10686return new ExecutableLaunchConfiguration("test") { Mode = mode }; 10739.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "/test/path", Mode = mode }, "project"); 10782.WithDebugSupport(mode => new ProjectLaunchConfiguration { ProjectPath = "TestProjectWithLaunchSettings", Mode = mode }, "project"); 12837projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions"); 12929projectBuilder.WithDebugSupport(mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, "azure-functions");
Dcp\ResourceSnapshotBuilderTests.cs (4)
143Mode = ExecutableLaunchMode.NoDebug, 194Mode = ExecutableLaunchMode.NoDebug, 199Mode = ExecutableLaunchMode.NoDebug 250Mode = ExecutableLaunchMode.NoDebug,
DebugSupportExtensionsTests.cs (15)
83return Task.FromResult(new TestGoLaunchConfiguration { Mode = context.Mode }); 158Mode = mode, 175.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }, "go"); 194return new TestGoLaunchConfiguration { Mode = mode, Package = "./cmd/api" }; 214return Task.FromResult(new TestGoLaunchConfiguration { Mode = mode }); 235Mode = context.Mode, 257.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 276Mode = context.Mode, 352.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 414.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 434mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 456mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 480mode => new ExecutableLaunchConfiguration("azure-functions") { Mode = mode }, 503.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go"); 560.WithDebugSupport(mode => new TestGoLaunchConfiguration { Mode = mode }, "go");
ExecutableResourceBuilderExtensionTests.cs (4)
142.WithDebugSupport(mode => new ExecutableLaunchConfiguration("go") { Mode = mode }, "go"); 147return new ExecutableLaunchConfiguration("go") { Mode = mode }; 173() => executable.WithDebugSupport(mode => Task.FromResult(new ExecutableLaunchConfiguration("go") { Mode = mode }), "go")); 186() => 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)
657Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
645Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode);
Aspire.Hosting.Tests (20)
Dcp\DcpExecutorTests.cs (9)
5771Assert.Equal(expectedMode, plc!.Mode); 5814Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 6160Assert.Equal(ExecutableLaunchMode.Debug, config1.Mode); 8207Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 9314Assert.Equal(ExecutableLaunchMode.Debug, plc.Mode); 9355Assert.Equal(ExecutableLaunchMode.Debug, launchConfig.Mode); 9862Assert.Equal(ExecutableLaunchMode.NoDebug, plc.Mode); 10802Assert.Equal(expectedMode, plc.Mode); 12865Assert.Equal(ExecutableLaunchMode.Debug, config.Mode);
DebugSupportExtensionsTests.cs (7)
94Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 107Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 165Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 180Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 199Assert.Equal(ExecutableLaunchMode.Debug, launchConfiguration.Mode); 244Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode); 291Assert.Equal(ExecutableLaunchMode.NoDebug, launchConfiguration.Mode);
ExecutableResourceBuilderExtensionTests.cs (4)
122Assert.Equal(launchConfig.Mode, producedLaunchConfig.Mode); 160Assert.Equal(asyncConfiguration.Mode, syncConfiguration.Mode);