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