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