2 implementations of ModelResource
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
71public IResource ModelResource { get; }
Aspire.Hosting.TestUtilities (1)
Utils\TestDcpExecutor.cs (1)
54public IResource ModelResource { get; } = modelResource;
14 references to ModelResource
Aspire.Hosting (14)
Dcp\DcpExecutor.cs (13)
1134using var activity = ProfilingTelemetry.StartResourceStop(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName); 1200var resourceType = GetResourceType(appResource.DcpResource, resourceReference.ModelResource); 1202using var activity = ProfilingTelemetry.StartResourceStart(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName, resourceType); 1235await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1236await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1239await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1247await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1248await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1250await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1264_logger.LogError(ex, "Failed to start resource {ResourceName}", resourceReference.ModelResource.Name); 1267await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName, ex.Message)).ConfigureAwait(false); 1277ForgetCachedCallbackResults(resource.ModelResource); 1278ForgetConnectionStringAvailableEvent(resource.ModelResource);
Orchestrator\ApplicationOrchestrator.cs (1)
662resourceReference.ModelResource,