2 implementations of ExecutionContext
Aspire.Hosting.Testing (2)
DistributedApplicationTestingBuilder.cs (2)
526public DistributedApplicationExecutionContext ExecutionContext => innerBuilder.ExecutionContext; 689public DistributedApplicationExecutionContext ExecutionContext => _innerBuilder.ExecutionContext;
55 references to ExecutionContext
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
435var context = new EnvironmentCallbackContext(builder.ExecutionContext);
Aspire.Hosting.Azure.Tests (8)
AzureFunctionsTests.cs (3)
239var context = new EnvironmentCallbackContext(builder.ExecutionContext); 295var context = new EnvironmentCallbackContext(builder.ExecutionContext); 709var context = new EnvironmentCallbackContext(builder.ExecutionContext);
FoundryExtensionsTests.cs (5)
334builder.ExecutionContext, 363builder.ExecutionContext, 404builder.ExecutionContext, 445builder.ExecutionContext, 481builder.ExecutionContext,
Aspire.Hosting.EntityFrameworkCore.Tests (1)
EFMigrationPipelineTests.cs (1)
774builder.ExecutionContext,
Aspire.Hosting.Tests (45)
ExecutionConfigurationGathererTests.cs (29)
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); 132await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 155await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 175await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 199await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 222await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 225var result = await context.ResolveAsync(consumer, fakeLogger, builder.ExecutionContext); 257await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.ExecutionContext); 260var result = await context.ResolveAsync(consumer, fakeLogger, builder.ExecutionContext); 296await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 324await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 354await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 382await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 404await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 430await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 464await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 494await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 530await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 590await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 653await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 688await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 722await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 752await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 772await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 795await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.ExecutionContext); 839await 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 (4)
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);