14 references to ResourceViewModelChangeType
Aspire.Dashboard (12)
Components\Pages\ConsoleLogs.razor.cs (4)
158
if (ResourceName is not null && PageViewModel.SelectedResource is null && changeType ==
ResourceViewModelChangeType
.Upsert && string.Equals(ResourceName, resource.Name, StringComparisons.ResourceName))
365
private async Task OnResourceChanged(
ResourceViewModelChangeType
changeType, ResourceViewModel resource)
367
if (changeType ==
ResourceViewModelChangeType
.Upsert)
377
else if (changeType ==
ResourceViewModelChangeType
.Delete)
Components\Pages\Resources.razor.cs (2)
211
if (changeType ==
ResourceViewModelChangeType
.Upsert)
226
else if (changeType ==
ResourceViewModelChangeType
.Delete)
Model\ResourceOutgoingPeerResolver.cs (2)
46
if (changeType ==
ResourceViewModelChangeType
.Upsert)
50
else if (changeType ==
ResourceViewModelChangeType
.Delete)
ResourceService\DashboardClient.cs (3)
349
changes.Add(new(
ResourceViewModelChangeType
.Upsert, viewModel));
366
changes.Add(new(
ResourceViewModelChangeType
.Upsert, viewModel));
373
changes.Add(new(
ResourceViewModelChangeType
.Delete, removed));
ResourceService\IDashboardClient.cs (1)
53
ResourceViewModelChangeType
ChangeType,
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")));