5 instantiations of OnResourceChangedContext
Aspire.Hosting (5)
Dcp\DcpExecutor.cs (5)
372
await _executorEvents.PublishAsync(new
OnResourceChangedContext
(_shutdownCancellation.Token, resourceType, appModelResource, resource.Metadata.Name, status, s => snapshotFactory(resource, s))).ConfigureAwait(false);
589
await _executorEvents.PublishAsync(new
OnResourceChangedContext
(_shutdownCancellation.Token, resourceKind, appModelResource, resourceName, status, s =>
958
await _executorEvents.PublishAsync(new
OnResourceChangedContext
(_shutdownCancellation.Token, resourceType, resource, er.DcpResourceName, new ResourceStatus(null, null, null), s => _snapshotBuilder.ToSnapshot((Executable)er.DcpResource, s))).ConfigureAwait(false);
967
await _executorEvents.PublishAsync(new
OnResourceChangedContext
(cancellationToken, resourceType, resource, er.DcpResource.Metadata.Name, new ResourceStatus(KnownResourceStates.NotStarted, null, null), s => s with { State = new ResourceStateSnapshot(KnownResourceStates.NotStarted, null) })).ConfigureAwait(false);
1228
await _executorEvents.PublishAsync(new
OnResourceChangedContext
(_shutdownCancellation.Token, KnownResourceTypes.Container, cr.ModelResource, cr.DcpResourceName, new ResourceStatus(null, null, null), s => _snapshotBuilder.ToSnapshot((Container)cr.DcpResource, s))).ConfigureAwait(false);
2 references to OnResourceChangedContext
Aspire.Hosting (2)
Orchestrator\ApplicationOrchestrator.cs (2)
50
dcpExecutorEvents.Subscribe<
OnResourceChangedContext
>(OnResourceChanged);
287
private async Task OnResourceChanged(
OnResourceChangedContext
context)