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