Implemented interface member:
property
ModelResource
Aspire.Hosting.Dcp.IResourceReference.ModelResource
1 write to ModelResource
Aspire.Hosting (1)
Dcp\AppResource.cs (1)
21ModelResource = modelResource;
20 references to ModelResource
Aspire.Hosting (20)
Dcp\DcpExecutor.cs (20)
677containerHostAddress: appResource.ModelResource.IsContainer() ? containerHost : null, 903await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name)).ConfigureAwait(false); 910resourceLogger.LogError(ex, "Failed to create resource {ResourceName}", er.ModelResource.Name); 911await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, er.ModelResource, er.DcpResource.Metadata.Name)).ConfigureAwait(false); 927foreach (var group in executableResources.GroupBy(e => e.ModelResource)) 958if (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); 1000if (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); 1173var logger = _loggerService.GetLogger(cr.ModelResource); 1184await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResource.Metadata.Name)).ConfigureAwait(false); 1188logger.LogError(ex, "Failed to create container resource {ResourceName}", cr.ModelResource.Name); 1189await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResource.Metadata.Name)).ConfigureAwait(false); 1217await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResource.Metadata.Name)).ConfigureAwait(false); 1220var modelContainerResource = cr.ModelResource; 1479var servicesProduced = _appResources.OfType<ServiceAppResource>().Where(r => r.ModelResource == modelResource); 1615var resourceType = GetResourceType(appResource.DcpResource, appResource.ModelResource); 1633_logger.LogError(ex, "Failed to start resource {ResourceName}", appResource.ModelResource.Name); 1634await _executorEvents.PublishAsync(new OnResourceFailedToStartContext(cancellationToken, resourceType, appResource.ModelResource, appResource.DcpResource.Metadata.Name)).ConfigureAwait(false); 1677await _executorEvents.PublishAsync(new OnResourceStartingContext(cancellationToken, resourceType, appResource.ModelResource, appResource.DcpResource.Metadata.Name)).ConfigureAwait(false);