4 instantiations of LaunchConfigurationCallbackContext
Aspire.Hosting (2)
ApplicationModel\DebugSupportExtensions.cs (1)
135new LaunchConfigurationCallbackContext(
ApplicationModel\ExecutableLaunchRecipe.cs (1)
395var 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(
43 references to LaunchConfigurationCallbackContext
Aspire.Hosting (10)
ApplicationModel\DebugSupportExtensions.cs (2)
153/// <see cref="ResourceBuilderExtensions.WithDebugSupport{T, TLaunchConfiguration}(IResourceBuilder{T}, Func{LaunchConfigurationCallbackContext, Task{TLaunchConfiguration}}, string)"/>, 167LaunchConfigurationCallbackContext context)
ApplicationModel\ExecutableLaunchConfiguration.cs (1)
92/// producers through <see cref="LaunchConfigurationCallbackContext.Mode"/>.
ApplicationModel\ExecutableLaunchRecipe.cs (1)
395var callbackContext = new LaunchConfigurationCallbackContext(
ResourceBuilderExtensions.cs (2)
4870$"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.", 4956Func<LaunchConfigurationCallbackContext, Task<TLaunchConfiguration>> launchConfigurationProducer,
SupportsDebuggingAnnotation.cs (4)
24Func<LaunchConfigurationCallbackContext, Task<object>> launchConfigurationProducer) 48internal Func<LaunchConfigurationCallbackContext, Task<object>> LaunchConfigurationProducer { get; } 53Func<LaunchConfigurationCallbackContext, Task<T>> launchConfigurationProducer) 61async Task<T> ProduceAsync(LaunchConfigurationCallbackContext context)
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectResourceTests.cs (2)
546var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 581var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
Aspire.Hosting.Go.Tests (1)
AddGoAppTests.cs (1)
1188var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
Aspire.Hosting.Java.Tests (1)
AddJavaAppTests.cs (1)
1359var context = new LaunchConfigurationCallbackContext(
Aspire.Hosting.JavaScript.Tests (2)
AddBunAppTests.cs (1)
398var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
AddNodeAppTests.cs (1)
630var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(resource);
Aspire.Hosting.Maui.Tests (1)
MauiPlatformExtensionsTests.cs (1)
893var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
1633var 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)
4506LaunchConfigurationCallbackContext? launchContext = null; 6343LaunchConfigurationCallbackContext? 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; 216LaunchConfigurationCallbackContext? observedContext = null; 232var actualContext = Assert.IsType<LaunchConfigurationCallbackContext>(observedContext); 257LaunchConfigurationCallbackContext? observedContext = null; 269var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext( 278var actualContext = Assert.IsType<LaunchConfigurationCallbackContext>(observedContext); 466var callbackContext = LaunchConfigurationTestHelpers.CreateCallbackContext(
ExecutableResourceBuilderExtensionTests.cs (1)
332var 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)