463 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\DistributedApplicationModel.cs (1)
16/// Initializes a new instance of the <see cref="DistributedApplicationModel"/> class with the specified resource collection.
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)
380var appModel = sp.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationRunner.cs (1)
11internal sealed class DistributedApplicationRunner(IHostApplicationLifetime lifetime, 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)
19private readonly DistributedApplicationModel _model; 28public ApplicationOrchestrator(DistributedApplicationModel model,
Orchestrator\RelationshipEvaluator.cs (2)
13public static ILookup<IResource, IResource> GetParentChildLookup(DistributedApplicationModel model) 24private static IEnumerable<(IResource Child, IResource Parent)> GetParentChildRelationshipsFromAnnotations(DistributedApplicationModel model)
Publishing\IDistributedApplicationPublisher.cs (1)
19public Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken);
Publishing\ManifestPublisher.cs (3)
21public async Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken) 26protected virtual async Task PublishInternalAsync(DistributedApplicationModel model, CancellationToken cancellationToken) 44protected 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 (6)
AzureContainerAppPublisher.cs (1)
22public Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken)
AzureResourcePreparer.cs (4)
20public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken) 48internal static List<(IResource Resource, IAzureResource AzureResource)> GetAzureResourcesFromAppModel(DistributedApplicationModel appModel) 78private static void EnsureNoRoleAssignmentAnnotations(DistributedApplicationModel appModel) 89private async Task BuildRoleAssignmentAnnotations(DistributedApplicationModel appModel, bool supportsTargetedRoleAssignments, CancellationToken cancellationToken)
Provisioning\Provisioners\AzureProvisioner.cs (1)
47public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.AppContainers (1)
AzureContainerAppsInfrastructure.cs (1)
30public async Task BeforeStartAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default)
Aspire.Hosting.Azure.Tests (58)
AzureContainerAppsTests.cs (52)
35var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 122var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 217var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 352var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 456var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 564var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 660var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 778var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1115var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1204var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1313var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1427var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1541var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1684var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1835var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 1916var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2005var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2101var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2188var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2324var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2518var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2539var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2558var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2578var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2597var model = app.Services.GetRequiredService<DistributedApplicationModel>(); 2616var model = app.Services.GetRequiredService<DistributedApplicationModel>();
AzureFunctionsTests.cs (4)
147var model = host.Services.GetRequiredService<DistributedApplicationModel>(); 168var model = host.Services.GetRequiredService<DistributedApplicationModel>();
RoleAssignmentTests.cs (2)
30var model = app.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.Docker (3)
DockerComposePublisher.cs (1)
37public async Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken)
DockerComposePublishingContext.cs (2)
34internal async Task WriteModel(DistributedApplicationModel model) 62private async Task WriteDockerComposeOutput(DistributedApplicationModel model)
Aspire.Hosting.Docker.Tests (2)
DockerComposePublisherTests.cs (2)
42var model = app.Services.GetRequiredService<DistributedApplicationModel>();
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 (12)
AddGarnetTests.cs (12)
23var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 51var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 80var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 344var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 365var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 382var 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.Kubernetes (1)
KubernetesPublisher.cs (1)
22public Task PublishAsync(DistributedApplicationModel model, CancellationToken cancellationToken)
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>())); 272var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 274builder.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 (15)
AddPostgresTests.cs (15)
53var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 175var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 197var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 378var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 381await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 472await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 531var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 533await 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 (17)
AddRedisTests.cs (15)
31var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 59var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 90var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 107var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 122var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 331await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 355await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new(app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 376await builder.Eventing.PublishAsync<AfterEndpointsAllocatedEvent>(new (app.Services, app.Services.GetRequiredService<DistributedApplicationModel>())); 528var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
RedisFunctionalTests.cs (2)
731var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Seq.Tests (6)
AddSeqTests.cs (6)
22var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 50var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 79var appModel = 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)
78var applicationModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Testing.Tests (6)
TestingBuilderTests.cs (4)
100var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 162var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
TestingFactoryTests.cs (2)
43var appModel = _app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Hosting.Tests (161)
AddParameterTests.cs (16)
25var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 62var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 96var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 146var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 203var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 268var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 298var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 336var 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 (57)
35var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 60var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 144var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 187var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 236var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 268var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 300var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 333var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 370var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 390var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 424var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 458var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 522var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 544var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 580var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 678var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 784var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 829var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 866var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 901var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 961var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 982var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1018var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1055var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1092var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1122var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1159var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1181var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 1213DistributedApplicationModel distributedAppModel,
DistributedApplicationBuilderTests.cs (4)
42var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 64var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
DistributedApplicationTests.cs (6)
319var tcs = new TaskCompletionSource<DistributedApplicationModel>(TaskCreationOptions.RunContinuationsAsynchronously); 326var appModel = await tcs.Task.DefaultTimeout(TestConstants.DefaultOrchestratorTestTimeout); 337private sealed class CheckAllocatedEndpointsLifecycleHook(TaskCompletionSource<DistributedApplicationModel> tcs) : IDistributedApplicationLifecycleHook 339public Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken = default) 1149public async Task AfterEndpointsAllocatedAsync(DistributedApplicationModel appModel, CancellationToken cancellationToken) 1154public 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)
18protected 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>(); 144var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 197var distributedAppModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 255DistributedApplicationModel distributedAppModel,
Orchestrator\RelationshipEvaluatorTests.cs (2)
29var 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 (12)
AddValkeyTests.cs (12)
23var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 51var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 80var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 99var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 116var appModel = app.Services.GetRequiredService<DistributedApplicationModel>(); 334var appModel = app.Services.GetRequiredService<DistributedApplicationModel>();
Aspire.Playground.Tests (7)
AppHostTests.cs (2)
70var 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)