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