4 instantiations of LaunchConfigurationCallbackContext
Aspire.Hosting (2)
ApplicationModel\DebugSupportExtensions.cs (1)
254new LaunchConfigurationCallbackContext(
ApplicationModel\ExecutableLaunchRecipe.cs (1)
409var callbackContext = new LaunchConfigurationCallbackContext(
Aspire.Hosting.Java.Tests (1)
AddJavaAppTests.cs (1)
1359var context = new LaunchConfigurationCallbackContext(
Aspire.Hosting.TestUtilities (1)
Utils\LaunchConfigurationTestHelpers.cs (1)
18return new LaunchConfigurationCallbackContext(
50 references to LaunchConfigurationCallbackContext
Aspire.Hosting (10)
ApplicationModel\DebugSupportExtensions.cs (2)
272/// <see cref="ResourceBuilderExtensions.WithDebugSupport{T, TLaunchConfiguration}(IResourceBuilder{T}, Func{LaunchConfigurationCallbackContext, Task{TLaunchConfiguration}}, string)"/>, 286LaunchConfigurationCallbackContext context)
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
105/// producers through <see cref="LaunchConfigurationCallbackContext.Mode"/>.
ApplicationModel\ExecutableLaunchRecipe.cs (1)
409var callbackContext = new LaunchConfigurationCallbackContext(
ResourceBuilderExtensions.cs (2)
5366$"either by accepting the launch mode and a {nameof(CancellationToken)} or by accepting a {nameof(LaunchConfigurationCallbackContext)}; otherwise the task itself is used as the launch configuration.", 5452Func<LaunchConfigurationCallbackContext, Task<TLaunchConfiguration>> launchConfigurationProducer,
SupportsDebuggingAnnotation.cs (4)
24Func<LaunchConfigurationCallbackContext, Task<object>> launchConfigurationProducer) 66internal Func<LaunchConfigurationCallbackContext, Task<object>> LaunchConfigurationProducer { get; } 71Func<LaunchConfigurationCallbackContext, Task<T>> launchConfigurationProducer) 79async Task<T> ProduceAsync(LaunchConfigurationCallbackContext context)
Aspire.Hosting.Dotnet.Tests (8)
DotnetProjectBuildCoordinatorTests.cs (5)
2547var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 2753var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 2815var refreshedCallbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 3137var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 3258var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
DotnetProjectOptionsTests.cs (1)
34var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource, ExecutableLaunchMode.Debug);
DotnetProjectResourceTests.cs (2)
651var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 690var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
1670var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
Aspire.Hosting.Java.Tests (1)
AddJavaAppTests.cs (1)
1359var context = new LaunchConfigurationCallbackContext(
Aspire.Hosting.JavaScript.Tests (3)
AddBunAppTests.cs (1)
396var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
AddDenoAppTests.cs (1)
2684var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
AddNodeAppTests.cs (1)
627var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
1428var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
1951var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
Aspire.Hosting.Rust.Tests (5)
RustPublicApiTests.cs (5)
343var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(app.Resource); 407var firstContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 410var secondContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 514var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(app.Resource, cancellationToken: cts.Token); 540var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
Aspire.Hosting.Tests (18)
Dcp\DcpExecutorTests.cs (2)
6049LaunchConfigurationCallbackContext? launchContext = null; 8237LaunchConfigurationCallbackContext? launchContext = null;
DebugSupportExtensionsTests.cs (15)
22var contextType = typeof(LaunchConfigurationCallbackContext); 27nameof(LaunchConfigurationCallbackContext.CancellationToken), 28nameof(LaunchConfigurationCallbackContext.EnvironmentVariables), 29nameof(LaunchConfigurationCallbackContext.Mode), 30nameof(LaunchConfigurationCallbackContext.Resource) 60parameters[1].ParameterType == typeof(LaunchConfigurationCallbackContext); 77LaunchConfigurationCallbackContext? observedContext = null; 227LaunchConfigurationCallbackContext? observedContext = null; 243var actualContext = Assert.IsType<LaunchConfigurationCallbackContext>(observedContext); 268LaunchConfigurationCallbackContext? observedContext = null; 280var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 289var actualContext = Assert.IsType<LaunchConfigurationCallbackContext>(observedContext); 598var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
ExecutableResourceBuilderExtensionTests.cs (1)
346var guidance = $"The launch configuration producer returns '{producerReturnType}'. An asynchronous producer must bind to an asynchronous {nameof(ResourceBuilderExtensions.WithDebugSupport)} overload either by accepting the launch mode and a {nameof(CancellationToken)} or by accepting a {nameof(LaunchConfigurationCallbackContext)}; otherwise the task itself is used as the launch configuration.";
Aspire.Hosting.TestUtilities (2)
Utils\LaunchConfigurationTestHelpers.cs (2)
10public static LaunchConfigurationCallbackContext CreateCallbackContext( 27LaunchConfigurationCallbackContext callbackContext)