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