389 references to DistributedApplicationModel
Aspire.Hosting (54)
ApplicationModel\AfterEndpointsAllocatedEvent.cs (7)
12/// <param name="model">The <see cref="DistributedApplicationModel"/> instance.</param> 14/// Subscribing to this event is analogous to implementing the <see cref="Aspire.Hosting.Lifecycle.IDistributedApplicationLifecycleHook.AfterEndpointsAllocatedAsync(DistributedApplicationModel, CancellationToken)"/> 16/// <see cref="DistributedApplicationModel"/> service which is passed in as an argument 17/// in <see cref="Aspire.Hosting.Lifecycle.IDistributedApplicationLifecycleHook.AfterEndpointsAllocatedAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel, CancellationToken)"/>. 29public class AfterEndpointsAllocatedEvent(IServiceProvider services, DistributedApplicationModel model) : IDistributedApplicationEvent 37/// The <see cref="DistributedApplicationModel"/> instance. 39public DistributedApplicationModel Model { get; } = model;
ApplicationModel\AfterResourcesCreatedEvent.cs (7)
12/// <param name="model">The <see cref="DistributedApplicationModel"/> instance.</param> 14/// Subscribing to this event is analogous to implementing the <see cref="Aspire.Hosting.Lifecycle.IDistributedApplicationLifecycleHook.AfterResourcesCreatedAsync(DistributedApplicationModel, CancellationToken)"/> 16/// <see cref="DistributedApplicationModel"/> service which is passed in as an argument 17/// in <see cref="Aspire.Hosting.Lifecycle.IDistributedApplicationLifecycleHook.AfterResourcesCreatedAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel, CancellationToken)"/>. 29public class AfterResourcesCreatedEvent(IServiceProvider services, DistributedApplicationModel model) : IDistributedApplicationEvent 37/// The <see cref="DistributedApplicationModel"/> instance. 39public DistributedApplicationModel Model { get; } = model;
ApplicationModel\BeforeStartEvent.cs (7)
12/// <param name="model">The <see cref="DistributedApplicationModel"/> instance.</param> 14/// Subscribing to this event is analogous to implementing the <see cref="Aspire.Hosting.Lifecycle.IDistributedApplicationLifecycleHook.BeforeStartAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel, CancellationToken)"/> 16/// <see cref="DistributedApplicationModel"/> service which is passed in as an argument 17/// in <see cref="Aspire.Hosting.Lifecycle.IDistributedApplicationLifecycleHook.BeforeStartAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel, CancellationToken)"/>. 29public class BeforeStartEvent(IServiceProvider services, DistributedApplicationModel model) : IDistributedApplicationEvent 37/// The <see cref="DistributedApplicationModel"/> instance. 39public DistributedApplicationModel Model { get; } = model;
ApplicationModel\ProjectResourceExtensions.cs (2)
7/// Provides extension methods for <see cref="DistributedApplicationModel"/> to work with <see cref="ProjectResource"/> instances. 16public static IEnumerable<ProjectResource> GetProjectResources(this DistributedApplicationModel model)
ContainerResourceExtensions.cs (1)
18public static IEnumerable<IResource> GetContainerResources(this DistributedApplicationModel model)
Dashboard\DashboardLifecycleHook.cs (5)
44public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken) 93private void AddDashboardResource(DistributedApplicationModel model) 194var model = context.ExecutionContext.ServiceProvider.GetRequiredService<DistributedApplicationModel>(); 270private static string? GetAllowedOriginsFromResourceEndpoints(DistributedApplicationModel model)
Dashboard\DashboardServiceHost.cs (1)
50DistributedApplicationModel applicationModel,
Dcp\ApplicationExecutor.cs (3)
71DistributedApplicationModel model, 97private readonly DistributedApplicationModel _model = model; 195private static ILookup<IResource?, IResourceWithParent> GetParentChildLookup(DistributedApplicationModel model)
Dcp\DcpHostService.cs (2)
22private readonly DistributedApplicationModel _applicationModel; 49DistributedApplicationModel applicationModel)
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (1)
27public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
DistributedApplication.cs (3)
349var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 354var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationBuilder.cs (2)
323var appModel = sp.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationRunner.cs (1)
11internal sealed class DistributedApplicationRunner(DistributedApplicationExecutionContext executionContext, DistributedApplicationModel model, IServiceProvider serviceProvider) : BackgroundService
ExecutableResourceExtensions.cs (1)
18public static IEnumerable<ExecutableResource> GetExecutableResources(this DistributedApplicationModel model)
Lifecycle\IDistributedApplicationLifecycleHook.cs (4)
19Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 30Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 41/// <param name="appModel">The <see cref="DistributedApplicationModel"/> for the distributed application.</param> 44Task AfterResourcesCreatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
ParameterResourceBuilderExtensions.cs (1)
201public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
Publishing\IDistributedApplicationPublisher.cs (1)
19public Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken);
Publishing\ManifestPublisher.cs (3)
24public async Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken) 30protected virtual async Task PublishInternalAsync(DistributedApplicationModel model, CancellationToken cancellationToken) 48protected async Task WriteManifestAsync(DistributedApplicationModel model, Utf8JsonWriter jsonWriter, CancellationToken cancellationToken)
Publishing\ManifestPublishingContext.cs (2)
69internal async Task WriteModel(DistributedApplicationModel model, CancellationToken cancellationToken) 673private async Task WriteReferencedResources(DistributedApplicationModel model)
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\AzureProvisioner.cs (2)
46private static List<(IResource Resource, IAzureResource AzureResource)> GetAzureResourcesFromAppModel(DistributedApplicationModel appModel) 78public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
27public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Tests (44)
AzureContainerAppsTests.cs (40)
33var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 129var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 233var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 378var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 518var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 773var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 871var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 983var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1134var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1292var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1381var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1479var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1584var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1680var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1816var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1837var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1856var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1876var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1895var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1914var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureFunctionsTests.cs (4)
124var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 145var model = host.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Containers.Tests (9)
ContainerResourceTests.cs (9)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 41var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 111var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 145var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 173var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 192var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 241var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources());
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (2)
35public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 362private async Task<IReadOnlyDictionary<string, string>> StartOnDemandDaprComponentsAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
Aspire.Hosting.Dapr.Tests (4)
DaprTests.cs (4)
38var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 137var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Elasticsearch.Tests (6)
AddElasticsearchTests.cs (6)
24var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 86var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 147var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Garnet.Tests (6)
AddGarnetTests.cs (6)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Kafka.Tests (4)
AddKafkaTests.cs (4)
23var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 65var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Keycloak.Tests (2)
KeycloakResourceBuilderTests.cs (2)
24var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Milvus.Tests (6)
AddMilvusTests.cs (6)
27var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 58var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 191var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.MongoDB.Tests (6)
AddMongoDBTests.cs (6)
24var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 52var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.MySql.Tests (12)
AddMySqlTests.cs (12)
44var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 84var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 122var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 141var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 243await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 282var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 284builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Nats.Tests (8)
AddNatsTests.cs (8)
47var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 76var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 94var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 136var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Oracle.Tests (10)
AddOracleTests.cs (10)
43var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 83var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 121var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 141var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 165var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.PostgreSQL.Tests (12)
AddPostgresTests.cs (12)
53var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 108var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 176var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 199var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 468await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 514var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 516await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Python.Tests (6)
AddPythonAppTests.cs (6)
140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 176var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 215var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Qdrant.Tests (8)
AddQdrantTests.cs (8)
46var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 85var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 119var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 287var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.RabbitMQ.Tests (6)
AddRabbitMQTests.cs (6)
51var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 104var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 138var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Redis.Tests (8)
AddRedisTests.cs (8)
31var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 59var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 88var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 216await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 240await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new (app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.SqlServer.Tests (6)
AddSqlServerTests.cs (6)
44var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 92var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 115var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Testing (2)
DistributedApplicationHostingTestingExtensions.cs (2)
66var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Testing.Tests (6)
TestingBuilderTests.cs (4)
94var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
TestingFactoryTests.cs (2)
37var appModel = _app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Tests (142)
AddParameterTests.cs (14)
26var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 63var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 110var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 144var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 194var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 251var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 308var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Dashboard\DashboardLifecycleHookTests.cs (2)
47var model = new DistributedApplicationModel(new ResourceCollection()); 88var model = new DistributedApplicationModel(new ResourceCollection());
Dashboard\DashboardResourceTests.cs (26)
46var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 70var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 101var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 171var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 207var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 242var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 274var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 310var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 353var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 378var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 394var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 459var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 511var model = app.Services.GetRequiredService<DistributedApplicationModel>();
Dcp\ApplicationExecutorTests.cs (51)
36var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 61var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 113var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 145var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 177var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 210var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 247var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 267var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 301var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 335var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 399var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 421var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 457var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 555var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 661var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 706var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 743var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 778var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 838var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 859var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 895var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 932var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 962var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 982var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1001var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1045DistributedApplicationModel distributedAppModel,
DistributedApplicationBuilderTests.cs (4)
42var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationTests.cs (6)
151var tcs = new TaskCompletionSource<DistributedApplicationModel>(TaskCreationOptions.RunContinuationsAsynchronously); 158var appModel = await tcs.Task.DefaultTimeout(); 169private sealed class CheckAllocatedEndpointsLifecycleHook(TaskCompletionSource<DistributedApplicationModel> tcs) : IDistributedApplicationLifecycleHook 171public Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 886public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken) 891public async Task AfterResourcesCreatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
Helpers\CallbackLifecycleHook.cs (3)
10private readonly Func<DistributedApplicationModel, CancellationToken, Task> _beforeStartCallback; 12public CallbackLifecycleHook(Func<DistributedApplicationModel, CancellationToken, Task> beforeStartCallback) 17public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
Helpers\JsonDocumentManifestPublisher.cs (1)
19protected override async Task PublishInternalAsync(DistributedApplicationModel model, CancellationToken cancellationToken)
Helpers\NoopPublisher.cs (1)
12public Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken)
KestrelConfigTests.cs (2)
360var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
ProjectResourceTests.cs (30)
69var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 183var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 210var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 228var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 244var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 292var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 312var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 355var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 377var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 402var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 432var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 451var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 475var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 525var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 617var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
WithEndpointTests.cs (2)
210var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Valkey.Tests (6)
AddValkeyTests.cs (6)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Playground.Tests (7)
AppHostTests.cs (2)
70var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Infrastructure\DistributedApplicationExtensions.cs (4)
102var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 132var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Infrastructure\DistributedApplicationTestFactory.cs (1)
60public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
CustomResources.AppHost (1)
TestResource.cs (1)
34public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
HealthChecksSandbox.AppHost (1)
Program.cs (1)
65public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
Stress.AppHost (1)
TestResource.cs (1)
53public Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
TestProject.AppHost (1)
TestProgram.cs (1)
144public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)