From 629447c060ebf848d0a2514c4e7a3509540d48a3 Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 19 Jun 2019 19:12:17 +0200 Subject: [PATCH 1/2] Add SetUpdatesAttributeName --- .../src/RenderTree/RenderTreeBuilder.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs b/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs index 79290f8e072e..c6ae2998f256 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeBuilder.cs @@ -516,6 +516,24 @@ public void AddMultipleAttributes(int sequence, IEnumerable + /// + /// Indicates that the preceding attribute represents an event handler + /// whose execution updates the attribute with name . + /// + /// + /// This information is used by the rendering system to determine whether + /// to accept a value update for the other attribute when receiving a + /// call to the event handler. + /// + /// + /// The name of another attribute whose value can be updated when the event handler is executed. + public void SetUpdatesAttributeName(string updatesAttributeName) + { + // TODO: This will be implemented in a later PR, once aspnetcore-tooling + // is updated to call this method. + } + /// /// Appends a frame representing a child component. /// From 7324d1c07acfbf012b4a9f1f61ea32b38bcc0caa Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Wed, 19 Jun 2019 21:57:51 +0200 Subject: [PATCH 2/2] Update ref assembly source --- .../ref/Microsoft.AspNetCore.Components.netstandard2.0.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs index 7bdacfbc4b0d..1ae45da85183 100644 --- a/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs +++ b/src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs @@ -786,6 +786,7 @@ public void OpenComponent(int sequence, System.Type componentType) { } public void OpenComponent(int sequence) where TComponent : Microsoft.AspNetCore.Components.IComponent { } public void OpenElement(int sequence, string elementName) { } public void SetKey(object value) { } + public void SetUpdatesAttributeName(string updatesAttributeName) { } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RenderTreeDiff