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;
15 references to ModelResource
Aspire.Hosting (15)
Dcp\DcpExecutor.cs (13)
1187using var activity = ProfilingTelemetry.StartResourceStop(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName); 1253var resourceType = GetResourceType(appResource.DcpResource, resourceReference.ModelResource); 1255using var activity = ProfilingTelemetry.StartResourceStart(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName, resourceType); 1288await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1289await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1292await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1300await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1301await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1303await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1317_logger.LogError(ex, "Failed to start resource {ResourceName}", resourceReference.ModelResource.Name); 1320await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName, ex.Message)).ConfigureAwait(false); 1330ForgetCachedCallbackResults(resource.ModelResource); 1331ForgetConnectionStringAvailableEvent(resource.ModelResource);
Dcp\DcpResourceWatcher.cs (1)
912StringComparers.ResourceName.Equals(reference.ModelResource.Name, resourceName))
Orchestrator\ApplicationOrchestrator.cs (1)
662resourceReference.ModelResource,