예제 #1
0
        public async IAsyncEnumerable <ContainerChange> OnContainersChanged(
            Guid deploymentId,
            [EnumeratorCancellation] CancellationToken ct = default
            )
        {
            var sub = await pubSub.OnContainerChanged(ct);

            await foreach (var change in sub.ReadEventsAsync().WithCancellation(ct))
            {
                if (change.DeploymentId == deploymentId)
                {
                    yield return(change);
                }
            }
        }