Implemented interface member:
property
ModelResource
Aspire.Hosting.Dcp.IResourceReference.ModelResource
1 write to ModelResource
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
21
ModelResource
= modelResource;
20 references to ModelResource
Aspire.Hosting (20)
Dcp\DcpExecutor.cs (20)
677
containerHostAddress: appResource.
ModelResource
.IsContainer() ? containerHost : null,
903
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.
ModelResource
, er.DcpResource.Metadata.Name)).ConfigureAwait(false);
910
resourceLogger.LogError(ex, "Failed to create resource {ResourceName}", er.
ModelResource
.Name);
911
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.
ModelResource
, er.DcpResource.Metadata.Name)).ConfigureAwait(false);
927
foreach (var group in executableResources.GroupBy(e => e.
ModelResource
))
958
if (er.
ModelResource
.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var exeArgsCallbacks))
988
_logger.LogDebug(ex, "Failed to apply argument '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", arg, er.
ModelResource
.Name);
1000
if (er.
ModelResource
.TryGetEnvironmentVariables(out var envVarAnnotations))
1030
_logger.LogDebug(ex, "Failed to apply configuration value '{ConfigKey}' to '{ResourceName}'. A dependency may have failed to start.", c.Key, er.
ModelResource
.Name);
1173
var logger = _loggerService.GetLogger(cr.
ModelResource
);
1184
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResource.Metadata.Name)).ConfigureAwait(false);
1188
logger.LogError(ex, "Failed to create container resource {ResourceName}", cr.
ModelResource
.Name);
1189
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResource.Metadata.Name)).ConfigureAwait(false);
1217
await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, KnownResourceTypes.Container, cr.
ModelResource
, cr.DcpResource.Metadata.Name)).ConfigureAwait(false);
1220
var modelContainerResource = cr.
ModelResource
;
1479
var servicesProduced = _appResources.OfType<ServiceAppResource>().Where(r => r.
ModelResource
== modelResource);
1615
var resourceType = GetResourceType(appResource.DcpResource, appResource.
ModelResource
);
1633
_logger.LogError(ex, "Failed to start resource {ResourceName}", appResource.
ModelResource
.Name);
1634
await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, appResource.
ModelResource
, appResource.DcpResource.Metadata.Name)).ConfigureAwait(false);
1677
await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, appResource.
ModelResource
, appResource.DcpResource.Metadata.Name)).ConfigureAwait(false);