4 instantiations of LaunchConfigurationCallbackContext
Aspire.Hosting (2)
ApplicationModel\DebugSupportExtensions.cs (1)
138new LaunchConfigurationCallbackContext(
ApplicationModel\ExecutableLaunchRecipe.cs (1)
398var 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)
156/// <see cref="ResourceBuilderExtensions.WithDebugSupport{T, TLaunchConfiguration}(IResourceBuilder{T}, Func{LaunchConfigurationCallbackContext, Task{TLaunchConfiguration}}, string)"/>, 170LaunchConfigurationCallbackContext context)
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
105/// producers through <see cref="LaunchConfigurationCallbackContext.Mode"/>.
ApplicationModel\ExecutableLaunchRecipe.cs (1)
398var callbackContext = new LaunchConfigurationCallbackContext(
ResourceBuilderExtensions.cs (2)
5372$"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.", 5458Func<LaunchConfigurationCallbackContext, Task<TLaunchConfiguration>> launchConfigurationProducer,
SupportsDebuggingAnnotation.cs (4)
24Func<LaunchConfigurationCallbackContext, Task<object>> launchConfigurationProducer) 53internal Func<LaunchConfigurationCallbackContext, Task<object>> LaunchConfigurationProducer { get; } 58Func<LaunchConfigurationCallbackContext, Task<T>> launchConfigurationProducer) 66async Task<T> ProduceAsync(LaunchConfigurationCallbackContext context)
Aspire.Hosting.Dotnet.Tests (8)
DotnetProjectBuildCoordinatorTests.cs (5)
2438var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 2644var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 2706var refreshedCallbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 3028var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 3149var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
DotnetProjectOptionsTests.cs (1)
34var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource.Resource, ExecutableLaunchMode.Debug);
DotnetProjectResourceTests.cs (2)
652var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 691var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
1646var 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)
2687var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
AddNodeAppTests.cs (1)
628var 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)
5914LaunchConfigurationCallbackContext? launchContext = null; 7830LaunchConfigurationCallbackContext? launchContext = null;
DebugSupportExtensionsTests.cs (15)
23var contextType = typeof(LaunchConfigurationCallbackContext); 28nameof(LaunchConfigurationCallbackContext.CancellationToken), 29nameof(LaunchConfigurationCallbackContext.EnvironmentVariables), 30nameof(LaunchConfigurationCallbackContext.Mode), 31nameof(LaunchConfigurationCallbackContext.Resource) 61parameters[1].ParameterType == typeof(LaunchConfigurationCallbackContext); 78LaunchConfigurationCallbackContext? observedContext = null; 228LaunchConfigurationCallbackContext? observedContext = null; 244var actualContext = Assert.IsType<LaunchConfigurationCallbackContext>(observedContext); 269LaunchConfigurationCallbackContext? observedContext = null; 281var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 290var actualContext = Assert.IsType<LaunchConfigurationCallbackContext>(observedContext); 524var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
ExecutableResourceBuilderExtensionTests.cs (1)
347var 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)