1 write to ModelResource
Aspire.Hosting (1)
Dcp\ApplicationExecutor.cs (1)
44ModelResource = modelResource;
18 references to ModelResource
Aspire.Hosting (18)
Dcp\ApplicationExecutor.cs (18)
1014containerHostAddress: appResource.ModelResource.IsContainer() ? containerHost : null, 1248await notificationService.PublishUpdateAsync(er.ModelResource, er.DcpResource.Metadata.Name, s => s with { State = "FailedToStart" }).ConfigureAwait(false); 1255resourceLogger.LogError(ex, "Failed to create resource {ResourceName}", er.ModelResource.Name); 1256await notificationService.PublishUpdateAsync(er.ModelResource, er.DcpResource.Metadata.Name, s => s with { State = "FailedToStart" }).ConfigureAwait(false); 1272foreach (var group in executableResources.GroupBy(e => e.ModelResource)) 1328if (er.ModelResource.TryGetAnnotationsOfType<CommandLineArgsCallbackAnnotation>(out var exeArgsCallbacks)) 1370if (er.ModelResource.TryGetEnvironmentVariables(out var envVarAnnotations)) 1543var logger = loggerService.GetLogger(cr.ModelResource); 1545await notificationService.PublishUpdateAsync(cr.ModelResource, s => s with 1549new(KnownProperties.Container.Image, cr.ModelResource.TryGetContainerImageName(out var imageName) ? imageName : ""), 1555await SetChildResourceAsync(cr.ModelResource, cr.DcpResource.Metadata.Name, state: "Starting", startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 1566await notificationService.PublishUpdateAsync(cr.ModelResource, s => s with { State = "FailedToStart" }).ConfigureAwait(false); 1570logger.LogError(ex, "Failed to create container resource {ResourceName}", cr.ModelResource.Name); 1572await notificationService.PublishUpdateAsync(cr.ModelResource, s => s with { State = "FailedToStart" }).ConfigureAwait(false); 1574await SetChildResourceAsync(cr.ModelResource, cr.DcpResource.Metadata.Name, state: "FailedToStart", startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 1602await PublishConnectionStringAvailableEvent(cr.ModelResource, cancellationToken).ConfigureAwait(false); 1604var beforeResourceStartedEvent = new BeforeResourceStartedEvent(cr.ModelResource, serviceProvider); 1608var modelContainerResource = cr.ModelResource;