1 instantiation of ResourceSnapshotChange
Aspire.Hosting (1)
Dashboard\ResourcePublisher.cs (1)
106await channel.Writer.WriteAsync(new(changeType, snapshot), cancellationToken).ConfigureAwait(false);
11 references to ResourceSnapshotChange
Aspire.Hosting (7)
Dashboard\DashboardService.cs (2)
244foreach (var update in batch) 258throw new FormatException($"Unexpected {nameof(ResourceSnapshotChange)} type: {update.ChangeType}");
Dashboard\ResourcePublisher.cs (5)
23private ImmutableHashSet<Channel<ResourceSnapshotChange>> _outgoingChannels = []; 49var channel = Channel.CreateUnbounded<ResourceSnapshotChange>( 58async IAsyncEnumerable<IReadOnlyList<ResourceSnapshotChange>> StreamUpdates([EnumeratorCancellation] CancellationToken enumeratorCancellationToken = default) 86ImmutableHashSet<Channel<ResourceSnapshotChange>> channels; 113IAsyncEnumerable<IReadOnlyList<ResourceSnapshotChange>> Subscription);
Aspire.Hosting.Tests (4)
Dashboard\ResourcePublisherTests.cs (4)
35var tcs = new TaskCompletionSource<IReadOnlyList<ResourceSnapshotChange>>(TaskCreationOptions.RunContinuationsAsynchronously); 47var change = Assert.Single(await tcs.Task.DefaultTimeout()); 96var v1 = Assert.Single(enumerator1.Current); 97var v2 = Assert.Single(enumerator2.Current);