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)
1174using var activity = ProfilingTelemetry.StartResourceStop(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName); 1240var resourceType = GetResourceType(appResource.DcpResource, resourceReference.ModelResource); 1242using var activity = ProfilingTelemetry.StartResourceStart(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName, resourceType); 1275await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1276await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1279await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1287await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1288await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1291await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1305_logger.LogError(ex, "Failed to start resource {ResourceName}", resourceReference.ModelResource.Name); 1308await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName, ex.Message)).ConfigureAwait(false); 1318ForgetCachedCallbackResults(resource.ModelResource); 1319ForgetConnectionStringAvailableEvent(resource.ModelResource);
Dcp\DcpResourceWatcher.cs (1)
966StringComparers.ResourceName.Equals(reference.ModelResource.Name, resourceName))
Orchestrator\ApplicationOrchestrator.cs (1)
652resourceReference.ModelResource,