409 references to DistributedApplicationModel
Aspire.Hosting (57)
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) 209var model = context.ExecutionContext.ServiceProvider.GetRequiredService<DistributedApplicationModel>(); 274private static string? GetAllowedOriginsFromResourceEndpoints(DistributedApplicationModel model)
Dashboard\DashboardServiceHost.cs (1)
50DistributedApplicationModel applicationModel,
Dcp\DcpExecutor.cs (2)
47private readonly DistributedApplicationModel _model; 74DistributedApplicationModel model,
Dcp\DcpHost.cs (2)
22private readonly DistributedApplicationModel _applicationModel; 45DistributedApplicationModel applicationModel)
Devcontainers\DevcontainerPortForwardingLifecycleHook.cs (1)
27public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
DistributedApplication.cs (3)
402var beforeStartEvent = new BeforeStartEvent(_host.Services, _host.Services.GetRequiredService<DistributedApplicationModel>()); 407var appModel = _host.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationBuilder.cs (2)
335var 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)
Orchestrator\ApplicationOrchestrator.cs (2)
18private readonly DistributedApplicationModel _model; 26public ApplicationOrchestrator(DistributedApplicationModel model,
Orchestrator\RelationshipEvaluator.cs (2)
13public static ILookup<IResource, IResource> GetParentChildLookup(DistributedApplicationModel model) 31private static IEnumerable<(IResource Child, IResource? Root)> GetParentChildRelationshipsFromAnnotations(DistributedApplicationModel model)
ParameterResourceBuilderExtensions.cs (1)
205public 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)
71internal async Task WriteModel(DistributedApplicationModel model, CancellationToken cancellationToken) 652private 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 (48)
AzureContainerAppsTests.cs (44)
33var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 129var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 233var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 375var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 486var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 603var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 744var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 985var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1083var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1195var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1347var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1505var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1594var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1692var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1797var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1893var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2029var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2050var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2069var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2089var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2108var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2127var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureFunctionsTests.cs (4)
124var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 145var model = host.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Containers.Tests (13)
ContainerResourceTests.cs (13)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 41var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 60var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 80var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 151var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 185var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 213var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 232var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources()); 281var containerResource = Assert.Single(app.Services.GetRequiredService<DistributedApplicationModel>().GetContainerResources());
Aspire.Hosting.Dapr (2)
DaprDistributedApplicationLifecycleHook.cs (2)
36public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 363private async Task<IReadOnlyDictionary<string, string>> StartOnDemandDaprComponentsAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)
Aspire.Hosting.Elasticsearch.Tests (6)
AddElasticsearchTests.cs (6)
24var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 85var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 146var 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)
26var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 56var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 185var 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>(); 83var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 121var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 242await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 281var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 283builder.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>(); 82var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 120var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 140var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 163var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.PostgreSQL.Tests (12)
AddPostgresTests.cs (12)
53var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 175var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 197var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 466await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 512var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 514await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>()));
Aspire.Hosting.Python.Tests (6)
AddPythonAppTests.cs (6)
143var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 179var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 218var 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>(); 118var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 284var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.RabbitMQ.Tests (6)
AddRabbitMQTests.cs (6)
51var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 103var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 137var 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>(); 91var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 113var 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)
100var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 148var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
TestingFactoryTests.cs (2)
46var appModel = _app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Tests (155)
AddParameterTests.cs (16)
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>(); 316var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 346var 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\DcpExecutorTests.cs (53)
35var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 60var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 138var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 199var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 248var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 280var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 312var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 345var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 382var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 402var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 436var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 470var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 534var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 556var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 592var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 690var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 796var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 841var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 878var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 913var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 973var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 994var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1030var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1067var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1097var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1134var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1153DistributedApplicationModel distributedAppModel,
DistributedApplicationBuilderTests.cs (4)
42var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationTests.cs (6)
240var tcs = new TaskCompletionSource<DistributedApplicationModel>(TaskCreationOptions.RunContinuationsAsynchronously); 247var appModel = await tcs.Task.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 258private sealed class CheckAllocatedEndpointsLifecycleHook(TaskCompletionSource<DistributedApplicationModel> tcs) : IDistributedApplicationLifecycleHook 260public Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 1055public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken) 1060public 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>();
Orchestrator\ApplicationOrchestratorTests.cs (9)
28var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 77var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 142var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 195var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 253DistributedApplicationModel distributedAppModel,
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)
68var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Infrastructure\DistributedApplicationExtensions.cs (4)
101var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 130var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Infrastructure\DistributedApplicationTestFactory.cs (1)
53public 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)
157public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken)