Skip to content

Commit 5a80aa9

Browse files
committed
2.3.0.8
1 parent 46b1f97 commit 5a80aa9

7 files changed

Lines changed: 13 additions & 12 deletions
-94.6 KB
Binary file not shown.
94.6 KB
Binary file not shown.

Blazor.WebForm.Components/Base/ControlComponentBase.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public EventHandler OnDisposed
176176
}
177177
}
178178

179-
[CascadingParameter(Name = nameof(ContainerParent))]
179+
[CascadingParameter(Name = nameof(System.Web.UI.Control.ContainerParent))]
180180
protected Control ContainerParent
181181
{
182182
get
@@ -380,12 +380,12 @@ protected override void OnUpdate(object sender, StateUpdateEventArgs e)
380380
base.OnUpdate(sender, e);
381381
if (e.PostBackRefresh)
382382
{
383-
this.SendMessage("RequestRefresh", this.TemplateControl);
383+
this.SendMessage(nameof(this.RequestRefresh), this.TemplateControl);
384384
}
385385
}
386386

387387
[MessageNotifyMethod]
388-
protected void RequestRefresh(TemplateControl control)
388+
protected internal void RequestRefresh(TemplateControl control)
389389
{
390390
if (_disposed || control != this.TemplateControl)
391391
{
@@ -398,11 +398,11 @@ protected virtual void OnSubmit(object sender, EventArgs e)
398398
{
399399
if ((this.ClientScript as IPlatformClientScript).InProcess)
400400
{
401-
this.SendMessage("RequestLoadPostData", this.TemplateControl);
401+
this.SendMessage(nameof(this.RequestLoadPostData), this.TemplateControl);
402402
}
403403
else
404404
{
405-
this.SendMessage("RequestLoadPostDataAsync", this.TemplateControl);
405+
this.SendMessage(nameof(this.RequestLoadPostDataAsync), this.TemplateControl);
406406
}
407407
}
408408

Blazor.WebForm.Components/Base/ControlComponentExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text;
66
using System.Threading.Tasks;
77
using System.Web.UI;
8+
using Blazor.WebForm.UI.ControlComponents;
89
using Extensions.ComponentModel;
910

1011
namespace Microsoft.AspNetCore.Components
@@ -14,7 +15,7 @@ public static class ControlComponentExtensions
1415
public static void RequestRefresh<T>(this TemplateControlComponent<T> component) where T : TemplateControl, new()
1516
{
1617
component.LoadPostData();
17-
ControlComponentReflection<T>.SendMessageExtensionMethod(component, "RequestRefresh"
18+
ControlComponentReflection<T>.SendMessageExtensionMethod(component, nameof(ControlComponentBase<Control>.RequestRefresh)
1819
, arguments: new object[] { component.Control });
1920
}
2021
private class ControlComponentReflection<T> where T : Control, new()

Blazor.WebForm.Components/Blazor.WebForm.Components.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net7.0</TargetFramework>
55
<SignAssembly>true</SignAssembly>
66
<AssemblyOriginatorKeyFile>Blazor.WebForm.Components.pfx</AssemblyOriginatorKeyFile>
7-
<Version>2.3.0.7</Version>
7+
<Version>2.3.0.8</Version>
88
<RootNamespace>asp</RootNamespace>
99
<Copyright>Jurio li</Copyright>
1010
<AssemblyName>Blazor.WebForm.Components</AssemblyName>
@@ -17,7 +17,7 @@
1717

1818
<ItemGroup>
1919
<PackageReference Include="Applied" Version="1.2.1.7" />
20-
<PackageReference Include="Blazor.WebForm.UI" Version="2.3.0.7" />
20+
<PackageReference Include="Blazor.WebForm.UI" Version="2.3.0.8" />
2121
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="7.0.4" />
2222
</ItemGroup>
2323

Blazor.WebForm.Components/Utilities/CascadingChildContent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void RenderFragment(RenderTreeBuilder builder)
2222
}
2323
int sequence = this.ChildContent.Length * 4;
2424
builder.OpenComponent<RenderContent>(sequence);
25-
builder.AddAttribute(sequence + 1, "ChildContent", CascadingChildContent.StackContent(this.ChildLevel, sequence + 2, builder2 =>
25+
builder.AddAttribute(sequence + 1, nameof(RenderContent.ChildContent), CascadingChildContent.StackContent(this.ChildLevel, sequence + 2, builder2 =>
2626
{
2727
this.AfterContent(builder2, sequence + 2 + (this.ChildLevel * 2));
2828
}));
@@ -56,7 +56,7 @@ internal static RenderFragment StackContent(int childLevel, int sequence, Render
5656
queue.Push(builder =>
5757
{
5858
builder.OpenComponent<RenderContent>(sequence++);
59-
builder.AddAttribute(sequence++, "ChildContent", queue.Pop());
59+
builder.AddAttribute(sequence++, nameof(RenderContent.ChildContent), queue.Pop());
6060
builder.CloseComponent();
6161
});
6262
childLevel -= 1;

Blazor.WebForm.Components/Utilities/ValueChildContentPair.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public ValueChildContentPair(TValue value, RenderFragment childContent)
2626
internal override void AddChildContent(RenderTreeBuilder builder, int sequence)
2727
{
2828
builder.OpenComponent<CascadingValue<TValue>>(sequence);
29-
builder.AddAttribute(sequence + 1, "Value", this.Value);
30-
builder.AddAttribute(sequence + 2, "ChildContent", (RenderFragment)(builder2 =>
29+
builder.AddAttribute(sequence + 1, nameof(CascadingValue<TValue>.Value), this.Value);
30+
builder.AddAttribute(sequence + 2, nameof(CascadingValue<TValue>.ChildContent), (RenderFragment)(builder2 =>
3131
{
3232
builder2.AddContent(sequence + 3, this.ChildContent ?? EmptyChildContent);
3333
}));

0 commit comments

Comments
 (0)