2 implementations of ExecutionContext
Aspire.Hosting.Testing (2)
DistributedApplicationTestingBuilder.cs (2)
522
public DistributedApplicationExecutionContext
ExecutionContext
=> innerBuilder.ExecutionContext;
687
public DistributedApplicationExecutionContext
ExecutionContext
=> _innerBuilder.ExecutionContext;
109 references to ExecutionContext
Aspire.Hosting.Azure.EntraId.Tests (4)
EntraIdProvisioningTests.cs (4)
472
var context = new ResourceUrlsCallbackContext(builder.
ExecutionContext
, web.Resource, urls);
534
var context = new ResourceUrlsCallbackContext(builder.
ExecutionContext
, web.Resource, urls);
565
var context = new ResourceUrlsCallbackContext(builder.
ExecutionContext
, web.Resource, urls);
588
var context = new ResourceUrlsCallbackContext(builder.
ExecutionContext
, web.Resource, []);
Aspire.Hosting.Azure.Kusto.Tests (1)
AddAzureKustoTests.cs (1)
435
var context = new EnvironmentCallbackContext(builder.
ExecutionContext
);
Aspire.Hosting.Azure.Tests (38)
AzureBicepProvisionerTests.cs (1)
39
await BicepUtilities.SetParametersAsync(parameters, registration.Resource, builder.
ExecutionContext
);
AzureContainerAppExpressEndpointTests.cs (1)
369
app.Services.GetRequiredService<DistributedApplicationModel>(), builder.
ExecutionContext
,
AzureFunctionsTests.cs (5)
240
var context = new EnvironmentCallbackContext(builder.
ExecutionContext
);
296
var context = new EnvironmentCallbackContext(builder.
ExecutionContext
);
321
var context = new EnvironmentCallbackContext(builder.
ExecutionContext
);
396
var context = new EnvironmentCallbackContext(builder.
ExecutionContext
);
1032
var context = new EnvironmentCallbackContext(builder.
ExecutionContext
);
AzureWebPubSubEmulatorTests.cs (1)
82
builder.
ExecutionContext
, ResourceDependencyDiscoveryMode.DirectOnly);
BicepUtilitiesTests.cs (25)
39
await BicepUtilities.SetParametersAsync(parameters, resource.Resource, builder.
ExecutionContext
, skipKnownValues: true);
55
await BicepUtilities.SetParametersAsync(parameters, resource.Resource, builder.
ExecutionContext
);
61
resource.Resource, cached, builder.
ExecutionContext
, NullLogger.Instance));
68
resource.Resource, cached, builder.
ExecutionContext
, NullLogger.Instance);
75
await BicepUtilities.SetParametersAsync(parameters, resource.Resource, builder.
ExecutionContext
);
88
await BicepUtilities.SetParametersAsync(parameters, bicep0.Resource, builder.
ExecutionContext
);
124
await BicepUtilities.SetParametersAsync(parameters, bicep0.Resource, builder.
ExecutionContext
);
168
Assert.Same(builder.
ExecutionContext
, context.ExecutionContext);
180
await BicepUtilities.SetParametersAsync(parameters, bicep, builder.
ExecutionContext
, cancellationToken: cts.Token);
207
await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.
ExecutionContext
);
211
await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.
ExecutionContext
);
234
await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.
ExecutionContext
);
238
await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.
ExecutionContext
);
259
await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.
ExecutionContext
);
265
await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.
ExecutionContext
);
287
await BicepUtilities.SetParametersAsync(parameters0, bicep0.Resource, builder.
ExecutionContext
);
293
await BicepUtilities.SetParametersAsync(parameters1, bicep1.Resource, builder.
ExecutionContext
);
419
await BicepUtilities.SetParametersAsync(parameters, bicep, builder.
ExecutionContext
);
529
var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.
ExecutionContext
, NullLogger.Instance);
545
var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.
ExecutionContext
, NullLogger.Instance);
567
var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.
ExecutionContext
, NullLogger.Instance);
582
await BicepUtilities.SetParametersAsync(legacyParameters, bicep, builder.
ExecutionContext
);
592
var result = await BicepUtilities.GetCurrentChecksumAsync(bicep, stateSection, builder.
ExecutionContext
, NullLogger.Instance);
596
await BicepUtilities.SetParametersAsync(currentParameters, bicep, builder.
ExecutionContext
, skipKnownValues: true);
630
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.Blazor.Tests (1)
AddBlazorGatewayTests.cs (1)
274
.BuildAsync(publishBuilder.
ExecutionContext
, cancellationToken: context.CancellationToken);
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)
257
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 (60)
ExecutionConfigurationGathererTests.cs (33)
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
);
290
await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.
ExecutionContext
);
292
var result = await context.ResolveAsync(consumer, NullLogger.Instance, builder.
ExecutionContext
);
314
await gatherer.GatherAsync(context, consumer, NullLogger.Instance, builder.
ExecutionContext
);
317
var result = await context.ResolveAsync(consumer, fakeLogger, builder.
ExecutionContext
);
353
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
381
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
411
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
439
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
461
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
487
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
521
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
551
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
587
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
647
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
709
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
744
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
778
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
808
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
828
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
851
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
895
await gatherer.GatherAsync(context, resource, NullLogger.Instance, builder.
ExecutionContext
);
OperationModesTests.cs (12)
140
Assert.Equal(DistributedApplicationOperation.Publish, builder.
ExecutionContext
.Operation);
152
Assert.True(builder.
ExecutionContext
.IsRunMode);
153
Assert.False(builder.
ExecutionContext
.RunConfiguration.WatchEnabled);
165
Assert.True(builder.
ExecutionContext
.IsRunMode);
166
Assert.True(builder.
ExecutionContext
.RunConfiguration.WatchEnabled);
178
Assert.True(builder.
ExecutionContext
.RunConfiguration.WatchEnabled);
190
Assert.True(builder.
ExecutionContext
.IsRunMode);
191
Assert.False(builder.
ExecutionContext
.RunConfiguration.WatchEnabled);
204
Assert.True(builder.
ExecutionContext
.IsRunMode);
205
Assert.False(builder.
ExecutionContext
.RunConfiguration.WatchEnabled);
217
Assert.True(builder.
ExecutionContext
.IsPublishMode);
218
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);