8 references to Upsert
Aspire.Dashboard (6)
Components\Pages\ConsoleLogs.razor.cs (2)
158
if (ResourceName is not null && PageViewModel.SelectedResource is null && changeType == ResourceViewModelChangeType.
Upsert
&& string.Equals(ResourceName, resource.Name, StringComparisons.ResourceName))
367
if (changeType == ResourceViewModelChangeType.
Upsert
)
Components\Pages\Resources.razor.cs (1)
215
if (changeType == ResourceViewModelChangeType.
Upsert
)
Model\ResourceOutgoingPeerResolver.cs (1)
46
if (changeType == ResourceViewModelChangeType.
Upsert
)
ResourceService\DashboardClient.cs (2)
349
changes.Add(new(ResourceViewModelChangeType.
Upsert
, viewModel));
366
changes.Add(new(ResourceViewModelChangeType.
Upsert
, viewModel));
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")));