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)
1089using var activity = ProfilingTelemetry.StartResourceStop(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName); 1158var resourceType = GetResourceType(appResource.DcpResource, resourceReference.ModelResource); 1160using var activity = ProfilingTelemetry.StartResourceStart(_configuration, resourceReference.ModelResource, appResource.DcpResourceKind, appResource.DcpResourceName, resourceType); 1193await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1194await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1197await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1205await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1206await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName)).ConfigureAwait(false); 1209await PublishConnectionStringAvailableEventAsync(resourceReference.ModelResource, cancellationToken).ConfigureAwait(false); 1223_logger.LogError(ex, "Failed to start resource {ResourceName}", resourceReference.ModelResource.Name); 1226await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, resourceReference.ModelResource, resourceReference.DcpResourceName, ex.Message)).ConfigureAwait(false); 1236ForgetCachedCallbackResults(resource.ModelResource); 1237ForgetConnectionStringAvailableEvent(resource.ModelResource);
Dcp\DcpResourceWatcher.cs (1)
966StringComparers.ResourceName.Equals(reference.ModelResource.Name, resourceName))
Orchestrator\ApplicationOrchestrator.cs (1)
719resourceReference.ModelResource,