1 write to DcpResource
Aspire.Hosting (1)
Dcp\ApplicationExecutor.cs (1)
45DcpResource = dcpResource;
11 references to DcpResource
Aspire.Hosting (11)
Dcp\ApplicationExecutor.cs (11)
51public Service Service => (Service)DcpResource; 997var svc = (Service)sp.DcpResource; 1248await notificationService.PublishUpdateAsync(er.ModelResource, er.DcpResource.Metadata.Name, s => s with { State = "FailedToStart" }).ConfigureAwait(false); 1256await notificationService.PublishUpdateAsync(er.ModelResource, er.DcpResource.Metadata.Name, s => s with { State = "FailedToStart" }).ConfigureAwait(false); 1311switch (er.DcpResource) 1322throw new InvalidOperationException($"Expected an Executable-like resource, but got {er.DcpResource.Kind} instead"); 1555await SetChildResourceAsync(cr.ModelResource, cr.DcpResource.Metadata.Name, state: "Starting", startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 1574await SetChildResourceAsync(cr.ModelResource, cr.DcpResource.Metadata.Name, state: "FailedToStart", startTimeStamp: null, stopTimeStamp: null).ConfigureAwait(false); 1607var dcpContainerResource = (Container)cr.DcpResource; 1871if (HasMultipleReplicas(appResource.DcpResource)) 1891if (HasMultipleReplicas(appResource.DcpResource) && ea.TargetPort is int)