Implemented interface member:
property
ModelResource
Aspire.Hosting.Dcp.IResourceReference.ModelResource
1 write to ModelResource
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
57
ModelResource
= modelResource;
30 references to ModelResource
Aspire.Hosting (30)
Dcp\DcpExecutor.cs (30)
196
if (allocatedEndpointsAdvertised.Add(resource.
ModelResource
.Name))
199
new ResourceEndpointsAllocatedEvent(resource.
ModelResource
, _executionContext.ServiceProvider),
997
StringComparers.ResourceName.Equals(ts.ResourceName, appResource.
ModelResource
.Name) &&
1004
if (!TryGetEndpoint(appResource.
ModelResource
, ts.EndpointName, out var endpoint))
1016
StringComparers.ResourceName.Equals(swr.
ModelResource
.Name, ts.ResourceName) &&
1198
StringComparers.ResourceName.Equals(swr.
ModelResource
.Name, re.Resource.Name) &&
1452
var groups = executables.GroupBy(e => e.
ModelResource
).ToList();
1510
if (er.
ModelResource
.TryGetAnnotationsOfType<ExplicitStartupAnnotation>(out _) is true)
1525
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.
ModelResource
, er.DcpResource.Metadata.Name)).ConfigureAwait(false);
1532
resourceLogger.LogError(ex, "Failed to create resource {ResourceName}", er.
ModelResource
.Name);
1533
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.
ModelResource
, er.DcpResource.Metadata.Name)).ConfigureAwait(false);
1601
(var configuration, var configException) = await er.
ModelResource
.ExecutionConfigurationBuilder()
1723
if (er.
ModelResource
is ProjectResource project)
1862
var logger = _loggerService.GetLogger(cr.
ModelResource
);
1873
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResourceName)).ConfigureAwait(false);
1877
logger.LogError(ex, "Failed to create container resource {ResourceName}", cr.
ModelResource
.Name);
1878
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResourceName)).ConfigureAwait(false);
1888
await _executorEvents.PublishAsync(new OnResourceChangedContext(_shutdownCancellation.Token, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResourceName, new ResourceStatus(null, null, null), s => _snapshotBuilder.ToSnapshot((Container)cr.DcpResource, s))).ConfigureAwait(false);
1890
if (cr.
ModelResource
.TryGetLastAnnotation<ExplicitStartupAnnotation>(out _))
1915
var modelContainerResource = cr.
ModelResource
;
1918
await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResource.Metadata.Name)).ConfigureAwait(false);
1937
if (cr.
ModelResource
.TryGetLastAnnotation<ContainerCertificatePathsAnnotation>(out var pathsAnnotation))
1946
(var configuration, var configException) = await cr.
ModelResource
.ExecutionConfigurationBuilder()
2204
var servicesProduced = _appResources.OfType<ServiceWithModelResource>().Where(r => r.
ModelResource
== modelResource);
2387
var resourceType = GetResourceType(appResource.DcpResource, appResource.
ModelResource
);
2405
await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, appResource.
ModelResource
, appResource.DcpResourceName)).ConfigureAwait(false);
2411
await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, appResource.
ModelResource
, appResource.DcpResourceName)).ConfigureAwait(false);
2424
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, appResource.
ModelResource
, appResource.DcpResourceName)).ConfigureAwait(false);
2428
_logger.LogError(ex, "Failed to start resource {ResourceName}", appResource.
ModelResource
.Name);
2429
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, appResource.
ModelResource
, appResource.DcpResourceName)).ConfigureAwait(false);