14 references to ResourceViewModelChangeType
Aspire.Dashboard (12)
Components\Pages\ConsoleLogs.razor.cs (4)
158if (ResourceName is not null && PageViewModel.SelectedResource is null && changeType == ResourceViewModelChangeType.Upsert && string.Equals(ResourceName, resource.Name, StringComparisons.ResourceName)) 365private async Task OnResourceChanged(ResourceViewModelChangeType changeType, ResourceViewModel resource) 367if (changeType == ResourceViewModelChangeType.Upsert) 377else if (changeType == ResourceViewModelChangeType.Delete)
Components\Pages\Resources.razor.cs (2)
211if (changeType == ResourceViewModelChangeType.Upsert) 226else 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")));