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