1 instantiation of RenderTreeDiff
Microsoft.AspNetCore.Components (1)
RenderTree\RenderTreeDiffBuilder.cs (1)
35var result = new RenderTreeDiff(componentId, editsSegment);
128 references to RenderTreeDiff
Microsoft.AspNetCore.Components (8)
Rendering\ComponentState.cs (1)
122var diff = RenderTreeDiffBuilder.ComputeDiff(
Rendering\RenderBatchBuilder.cs (2)
22public ArrayBuilder<RenderTreeDiff> UpdatedComponentDiffs { get; } = new ArrayBuilder<RenderTreeDiff>();
RenderTree\RenderBatch.cs (2)
17public ArrayRange<RenderTreeDiff> UpdatedComponents { get; } 42ArrayRange<RenderTreeDiff> updatedComponents,
RenderTree\Renderer.cs (1)
803private Task InvokeRenderCompletedCalls(ArrayRange<RenderTreeDiff> updatedComponents, Task updateDisplayTask)
RenderTree\RenderTreeDiffBuilder.cs (2)
21public static RenderTreeDiff ComputeDiff( 35var result = new RenderTreeDiff(componentId, editsSegment);
Microsoft.AspNetCore.Components.Authorization.Tests (36)
AuthorizeRouteViewTest.cs (11)
62var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 73var pageDiff = batch.GetComponentDiffs<TestPageRequiringAuthorization>().Single(); 99var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 110var pageDiff = batch.GetComponentDiffs<TestPageRequiringAuthorization>().Single(); 137var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 166var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 194var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 222var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 235var nonEmptyDiff = batch.DiffsInOrder.Where(d => d.Edits.Any()).Single(); 266var layoutDiff = batch.GetComponentDiffs<TestLayout>().Single(); 353var diff = batch2.DiffsInOrder.Where(d => d.Edits.Any()).Single();
AuthorizeViewTest.cs (12)
37var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 66var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 100var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 130var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 166var diff = renderer.Batches.Single().GetComponentDiffs<AuthorizeView>().Single(); 213var diff = batch.DiffsByComponentId[authorizeViewComponentId].Single(); 268var diff1 = batch1.DiffsByComponentId[authorizeViewComponentId].Single(); 280var diff2 = batch2.DiffsByComponentId[authorizeViewComponentId].Single(); 311var diff1 = Assert.Single(batch1.DiffsByComponentId[authorizeViewComponentId]); 329var diff2 = Assert.Single(batch2.DiffsByComponentId[authorizeViewComponentId]); 369var diff1 = batch1.DiffsByComponentId[authorizeViewComponentId].Single(); 387var diff2 = batch2.DiffsByComponentId[authorizeViewComponentId].Single();
CascadingAuthenticationStateTest.cs (4)
54var receiveAuthStateDiff = batch.DiffsByComponentId[receiveAuthStateId].Single(); 89var receiveAuthStateDiff1 = batch1.DiffsByComponentId[receiveAuthStateId].Single(); 107var receiveAuthStateDiff2 = batch2.DiffsByComponentId[receiveAuthStateId].Single(); 143var receiveAuthStateDiff = batch.DiffsByComponentId[receiveAuthStateId].Single();
src\Components\Shared\test\CapturedBatch.cs (8)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>(); 13public IList<RenderTreeDiff> DiffsInOrder { get; } 14= new List<RenderTreeDiff>(); 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent 25internal void AddDiff(RenderTreeDiff diff) 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>()); 36var diffClone = new RenderTreeDiff(
src\Components\Shared\test\TestRenderer.cs (1)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.Forms.Tests (9)
src\Components\Shared\test\CapturedBatch.cs (8)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>(); 13public IList<RenderTreeDiff> DiffsInOrder { get; } 14= new List<RenderTreeDiff>(); 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent 25internal void AddDiff(RenderTreeDiff diff) 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>()); 36var diffClone = new RenderTreeDiff(
src\Components\Shared\test\TestRenderer.cs (1)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.Performance (1)
RenderTreeDiffBuilderBenchmark.cs (1)
82var diff = RenderTreeDiffBuilder.ComputeDiff(renderer, builder, 0, modified.GetFrames(), original.GetFrames());
Microsoft.AspNetCore.Components.Server (2)
src\Components\Shared\src\RenderBatchWriter.cs (2)
62int Write(in ArrayRange<RenderTreeDiff> diffs) 85void Write(in RenderTreeDiff diff)
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\RenderBatchWriterTest.cs (3)
74new ArrayRange<RenderTreeDiff>(), 101new ArrayRange<RenderTreeDiff>(new[] 159new ArrayRange<RenderTreeDiff>(new[]
Microsoft.AspNetCore.Components.Tests (57)
CascadingParameterTest.cs (16)
36var nestedComponentDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 85var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 131var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 279var nestedComponentDiff = firstBatch.DiffsByComponentId[nestedComponentId].Single(); 419var nestedComponentDiff1 = batch.DiffsByComponentId[nestedComponentId1].Single(); 420var nestedComponentDiff2 = batch.DiffsByComponentId[nestedComponentId2].Single(); 467var diff = batch.DiffsByComponentId[componentId].Single(); 503var diff = batch.DiffsByComponentId[componentId].Single(); 541var nestedComponentDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 585var diff = firstBatch.DiffsByComponentId[componentId].Single(); 602var diff2 = secondBatch.DiffsByComponentId[componentId].Single(); 618var diff3 = thirdBatch.DiffsByComponentId[componentId].Single(); 655var diff = firstBatch.DiffsByComponentId[componentId].Single(); 670var diff2 = secondBatch.DiffsByComponentId[componentId].Single(); 680var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 766var nestedComponentDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single();
RendererTest.cs (26)
46var diff = batch.DiffsByComponentId[componentId].Single(); 77var nestedComponentDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 107var firstDiff = batch.DiffsByComponentId[componentId].Single(); 120var secondDiff = secondBatch.DiffsByComponentId[componentId].Single(); 152var firstDiff = batch.DiffsByComponentId[nestedComponentId].Single(); 165var secondDiff = secondBatch.DiffsByComponentId[nestedComponentId].Single(); 195var diff = create.DiffsByComponentId[componentId].Single(); 210var updateDiff = update.DiffsByComponentId[componentId].Single(); 289var diff = batch.DiffsByComponentId[componentId].Single(); 305var diff2 = batch2.DiffsByComponentId[componentId].Single(); 2011var renderer1Diff = renderer1Batch.DiffsByComponentId[renderer1ComponentId].Single(); 2021var renderer2Diff = renderer2Batch.DiffsByComponentId[renderer2ComponentId].Single(); 2058var diff = batch.DiffsByComponentId[rootComponentId].Single(); 2132var diff = renderer.Batches[1].DiffsByComponentId[childComponentId].Single(); 2170var diff = renderer.Batches[1].DiffsByComponentId[childComponentId].Single(); 2238var rootComponentDiff = batch.DiffsByComponentId[rootComponentId].Single(); 2640var rootComponentDiff = batch.DiffsByComponentId[rootComponentId].Single(); 2647var childComponentDiff = batch.DiffsByComponentId[childComponentFrame.ComponentId].Single(); 2767var rootComponentDiff = batch.DiffsByComponentId[rootComponentId].Single(); 2774var childComponentDiff = batch.DiffsByComponentId[childComponentFrame.ComponentId].Single(); 2984var diff1 = batch.DiffsInOrder[0]; 3002var diff2 = batch.DiffsInOrder[1]; 3010var diff3 = batch.DiffsInOrder[2]; 3018var diff4 = batch.DiffsInOrder[3]; 3099var latestDiff = latestBatch.DiffsInOrder.Single(); 3293var latestDiff = latestBatch.DiffsInOrder.Single();
RenderTreeDiffBuilderTest.cs (6)
819var diff = RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, 0, oldTree.GetFrames(), newTree.GetFrames()); 1566var diff = renderBatch.UpdatedComponents.AsEnumerable().Single(); 1601var rootComponentDiff = renderBatch.UpdatedComponents.Array[0]; 2394private (RenderTreeDiff, RenderTreeFrame[]) GetSingleUpdatedComponent(bool initializeFromFrames = false) 2400private (RenderTreeDiff, RenderTreeFrame[], RenderBatch) GetSingleUpdatedComponentWithBatch(bool initializeFromFrames = false, int componentId = 0) 2428var diff = RenderTreeDiffBuilder.ComputeDiff(renderer, batchBuilder, componentId, from.GetFrames(), to.GetFrames());
src\Components\Shared\test\CapturedBatch.cs (8)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>(); 13public IList<RenderTreeDiff> DiffsInOrder { get; } 14= new List<RenderTreeDiff>(); 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent 25internal void AddDiff(RenderTreeDiff diff) 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>()); 36var diffClone = new RenderTreeDiff(
src\Components\Shared\test\TestRenderer.cs (1)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.Web.Tests (9)
src\Components\Shared\test\CapturedBatch.cs (8)
10public IDictionary<int, List<RenderTreeDiff>> DiffsByComponentId { get; } 11= new Dictionary<int, List<RenderTreeDiff>>(); 13public IList<RenderTreeDiff> DiffsInOrder { get; } 14= new List<RenderTreeDiff>(); 22public IEnumerable<RenderTreeDiff> GetComponentDiffs<T>() where T : IComponent 25internal void AddDiff(RenderTreeDiff diff) 30DiffsByComponentId.Add(componentId, new List<RenderTreeDiff>()); 36var diffClone = new RenderTreeDiff(
src\Components\Shared\test\TestRenderer.cs (1)
120ref var renderTreeDiff = ref renderBatch.UpdatedComponents.Array[i];
Microsoft.AspNetCore.Components.WebView (2)
src\Components\Shared\src\RenderBatchWriter.cs (2)
62int Write(in ArrayRange<RenderTreeDiff> diffs) 85void Write(in RenderTreeDiff diff)
Microsoft.AspNetCore.Components.WebView.Test (1)
Infrastructure\TestDocument.cs (1)
30var diff = batch.UpdatedComponents.Array[i];