2 implementations of ExecutionContext
Aspire.Hosting.Testing (2)
DistributedApplicationTestingBuilder.cs (2)
522public DistributedApplicationExecutionContext ExecutionContext => innerBuilder.ExecutionContext; 687public DistributedApplicationExecutionContext ExecutionContext => _innerBuilder.ExecutionContext;
109 references to ExecutionContext
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdProvisioningTests.cs (4)
472var context = new ResourceUrlsCallbackContext(builder.ExecutionContext, web.Resource, urls); 534var context = new ResourceUrlsCallbackContext(builder.ExecutionContext, web.Resource, urls); 565var context = new ResourceUrlsCallbackContext(builder.ExecutionContext, web.Resource, urls); 588var context = new ResourceUrlsCallbackContext(builder.ExecutionContext, web.Resource, []);
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
435var context = new EnvironmentCallbackContext(builder.ExecutionContext);
Aspire.Hosting.Azure.Tests (38)
AzureBicepProvisionerTests.cs (1)
39await BicepUtilities.SetParametersAsync(parameters, registration.Resource, builder.ExecutionContext);
AzureContainerAppExpressEndpointTests.cs (1)
369app.Services.GetRequiredService<DistributedApplicationModel>(), builder.ExecutionContext,
AzureFunctionsTests.cs (5)
240var context = new EnvironmentCallbackContext(builder.ExecutionContext); 296var context = new EnvironmentCallbackContext(builder.ExecutionContext); 321var context = new EnvironmentCallbackContext(builder.ExecutionContext); 396var context = new EnvironmentCallbackContext(builder.ExecutionContext); 1032var context = new EnvironmentCallbackContext(builder.ExecutionContext);
AzureWebPubSubEmulatorTests.cs (1)
82builder.ExecutionContext, ResourceDependencyDiscoveryMode.DirectOnly);
BicepUtilitiesTests.cs (25)
39await BicepUtilities.SetParametersAsync(parameters, resource.Resource, builder.ExecutionContext, skipKnownValues: true); 55await BicepUtilities.SetParametersAsync(parameters, resource.Resource, builder.ExecutionContext); 61resource.Resource, cached, builder.ExecutionContext, NullLogger.Instance)); 68resource.Resource, cached, builder.ExecutionContext, NullLogger.Instance); 75await BicepUtilities.SetParametersAsync(parameters, resource.Resource, builder.ExecutionContext); 88await BicepUtilities.SetParametersAsync(parameters, bicep0.Resource, builder.ExecutionContext); 124await BicepUtilities.SetParametersAsync(parameters, bicep0.Resource, builder.ExecutionContext); 168Assert.Same(builder.ExecutionContext, context.ExecutionContext); 180await BicepUtilities.SetParametersAsync(parameters, bicep, builder.ExecutionContext, cancellationToken: cts.Token); 207await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 211await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 234await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 238await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 259await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 265await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 287await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 293await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 419await BicepUtilities.SetParametersAsync(parameters, bicep, builder.ExecutionContext); 529var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 545var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 567var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 582await BicepUtilities.SetParametersAsync(legacyParameters, bicep, builder.ExecutionContext); 592var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 596await BicepUtilities.SetParametersAsync(currentParameters, bicep, builder.ExecutionContext, skipKnownValues: true); 630var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance);
FoundryExtensionsTests.cs (5)
805builder.ExecutionContext, 833builder.ExecutionContext, 873builder.ExecutionContext, 913builder.ExecutionContext, 948builder.ExecutionContext,
Aspire.Hosting.Blazor.Tests (1)
AddBlazorGatewayTests.cs (1)
274.BuildAsync(publishBuilder.ExecutionContext, cancellationToken: context.CancellationToken);
Aspire.Hosting.EntityFrameworkCore.Tests (2)
EFMigrationPipelineTests.cs (2)
51app.Services.GetRequiredService<DistributedApplicationModel>(), builder.ExecutionContext, app.Services, 862builder.ExecutionContext,
Aspire.Hosting.Foundry.Tests (1)
ToolboxTests.cs (1)
257builder.ExecutionContext,
Aspire.Hosting.MongoDB.Tests (1)
MongoDBReplCommandTests.cs (1)
115ExecutionContext = builder.ExecutionContext,
Aspire.Hosting.Qdrant.Tests (1)
AddQdrantTests.cs (1)
300var context = new EnvironmentCallbackContext(appBuilder.ExecutionContext, consumer.Resource);
Aspire.Hosting.Tests (60)
ExecutionConfigurationGathererTests.cs (33)
39await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 62await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 82await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 106await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 136.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 138.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 167await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 190await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 210await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 234await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 257await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 260var result = await context.ResolveAsync(consumer, fakeLogger, builder.ExecutionContext); 290await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 292var result = await context.ResolveAsync(consumer, NullLogger.Instance, builder.ExecutionContext); 314await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 317var result = await context.ResolveAsync(consumer, fakeLogger, builder.ExecutionContext); 353await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 381await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 411await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 439await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 461await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 487await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 521await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 551await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 587await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 647await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 709await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 744await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 778await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 808await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 828await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 851await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 895await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
OperationModesTests.cs (12)
140Assert.Equal(DistributedApplicationOperation.Publish, builder.ExecutionContext.Operation); 152Assert.True(builder.ExecutionContext.IsRunMode); 153Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled); 165Assert.True(builder.ExecutionContext.IsRunMode); 166Assert.True(builder.ExecutionContext.RunConfiguration.WatchEnabled); 178Assert.True(builder.ExecutionContext.RunConfiguration.WatchEnabled); 190Assert.True(builder.ExecutionContext.IsRunMode); 191Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled); 204Assert.True(builder.ExecutionContext.IsRunMode); 205Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled); 217Assert.True(builder.ExecutionContext.IsPublishMode); 218Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled);
ProjectResourceBuilderExtensionTests.cs (12)
159.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 187.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 189.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 210.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 252.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 340.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 344.GatherAsync(context, project.Resource, NullLogger.Instance, builder.ExecutionContext); 388.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 423.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 460.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 497.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 499.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
WithReferenceTests.cs (3)
806var context = new EnvironmentCallbackContext(builder.ExecutionContext, project.Resource); 927var context = new EnvironmentCallbackContext(builder.ExecutionContext, project.Resource); 953var context = new EnvironmentCallbackContext(builder.ExecutionContext, project.Resource);