2 implementations of ExecutionContext
Aspire.Hosting.Testing (2)
DistributedApplicationTestingBuilder.cs (2)
526public DistributedApplicationExecutionContext ExecutionContext => innerBuilder.ExecutionContext; 689public DistributedApplicationExecutionContext ExecutionContext => _innerBuilder.ExecutionContext;
93 references to ExecutionContext
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
435var context = new EnvironmentCallbackContext(builder.ExecutionContext);
Aspire.Hosting.Azure.Tests (29)
AzureContainerAppExpressEndpointTests.cs (1)
371app.Services.GetRequiredService<DistributedApplicationModel>(), builder.ExecutionContext,
AzureFunctionsTests.cs (3)
239var context = new EnvironmentCallbackContext(builder.ExecutionContext); 295var context = new EnvironmentCallbackContext(builder.ExecutionContext); 709var context = new EnvironmentCallbackContext(builder.ExecutionContext);
BicepUtilitiesTests.cs (20)
26await BicepUtilities.SetParametersAsync(parameters, bicep0.Resource, builder.ExecutionContext); 62await BicepUtilities.SetParametersAsync(parameters, bicep0.Resource, builder.ExecutionContext); 106Assert.Same(builder.ExecutionContext, context.ExecutionContext); 118await BicepUtilities.SetParametersAsync(parameters, bicep, builder.ExecutionContext, cancellationToken: cts.Token); 145await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 149await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 172await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 176await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 197await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 203await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 225await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.ExecutionContext); 231await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.ExecutionContext); 357await BicepUtilities.SetParametersAsync(parameters, bicep, builder.ExecutionContext); 467var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 483var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 505var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 520await BicepUtilities.SetParametersAsync(legacyParameters, bicep, builder.ExecutionContext); 530var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.ExecutionContext, NullLogger.Instance); 534await BicepUtilities.SetParametersAsync(currentParameters, bicep, builder.ExecutionContext, skipKnownValues: true); 568var 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.EntityFrameworkCore.Tests (2)
EFMigrationPipelineTests.cs (2)
51app.Services.GetRequiredService<DistributedApplicationModel>(), builder.ExecutionContext, app.Services, 862builder.ExecutionContext,
Aspire.Hosting.Foundry.Tests (1)
ToolboxTests.cs (1)
259builder.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 (58)
ExecutionConfigurationGathererTests.cs (31)
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); 292await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 295var result = await context.ResolveAsync(consumer, fakeLogger, builder.ExecutionContext); 331await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 359await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 389await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 417await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 439await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 465await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 499await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 529await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 565await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 625await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 688await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 723await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 757await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 787await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 807await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 830await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 874await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext);
OperationModesTests.cs (12)
141Assert.Equal(DistributedApplicationOperation.Publish, builder.ExecutionContext.Operation); 153Assert.True(builder.ExecutionContext.IsRunMode); 154Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled); 166Assert.True(builder.ExecutionContext.IsRunMode); 167Assert.True(builder.ExecutionContext.RunConfiguration.WatchEnabled); 179Assert.True(builder.ExecutionContext.RunConfiguration.WatchEnabled); 191Assert.True(builder.ExecutionContext.IsRunMode); 192Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled); 205Assert.True(builder.ExecutionContext.IsRunMode); 206Assert.False(builder.ExecutionContext.RunConfiguration.WatchEnabled); 218Assert.True(builder.ExecutionContext.IsPublishMode); 219Assert.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);