2 instantiations of ResourceViewModelChange
Aspire.Dashboard.Components.Tests (1)
Pages\ConsoleLogsTests.cs (1)
70new ResourceViewModelChange(ResourceViewModelChangeType.Upsert, testResource)
Aspire.Dashboard.Tests (1)
ResourceOutgoingPeerResolverTests.cs (1)
146await sourceChannel.Writer.WriteAsync(new ResourceViewModelChange(ResourceViewModelChangeType.Upsert, CreateResource("test2")));
15 references to ResourceViewModelChange
Aspire.Dashboard (5)
ResourceService\DashboardClient.cs (4)
56private ImmutableHashSet<Channel<IReadOnlyList<ResourceViewModelChange>>> _outgoingChannels = []; 327List<ResourceViewModelChange>? changes = null; 437var channel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>( 449async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> StreamUpdatesAsync([EnumeratorCancellation] CancellationToken enumeratorCancellationToken = default)
ResourceService\IDashboardClient.cs (1)
50IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> Subscription);
Aspire.Dashboard.Components.Tests (6)
Pages\ConsoleLogsTests.cs (2)
38var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>(); 97var resourceChannel = Channel.CreateUnbounded<IReadOnlyList<ResourceViewModelChange>>();
Shared\TestDashboardClient.cs (4)
14private readonly Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? _resourceChannelProvider; 24Func<Channel<IReadOnlyList<ResourceViewModelChange>>>? resourceChannelProvider = null, 69async static IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> BuildSubscription(Channel<IReadOnlyList<ResourceViewModelChange>> channel, [EnumeratorCancellation] CancellationToken cancellationToken)
Aspire.Dashboard.Tests (4)
Integration\Playwright\Infrastructure\MockDashboardClient.cs (1)
62private static async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> Test()
ResourceOutgoingPeerResolverTests.cs (3)
123var sourceChannel = Channel.CreateUnbounded<ResourceViewModelChange>(); 154async IAsyncEnumerable<IReadOnlyList<ResourceViewModelChange>> GetChanges([EnumeratorCancellation] CancellationToken cancellationToken = default) 156await foreach (var item in sourceChannel.Reader.ReadAllAsync(cancellationToken))