Skip to content

Commit ad9ac55

Browse files
CR: Manual ref assembly definitions for AuthorizeView/CascadingAuthenticationState
1 parent 6a0287e commit ad9ac55

File tree

3 files changed

+28
-24
lines changed

3 files changed

+28
-24
lines changed

eng/GenAPI.exclusions.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ T:Microsoft.AspNetCore.Components.RenderTree.RenderTreeFrame
44
T:Microsoft.AspNetCore.Mvc.ApplicationModels.PageParameterModel
55
T:Microsoft.AspNetCore.Mvc.ApplicationModels.PagePropertyModel
66
# Manually implemented - https://github.com/aspnet/AspNetCore/issues/8825
7+
T:Microsoft.AspNetCore.Components.AuthorizeView
8+
T:Microsoft.AspNetCore.Components.CascadingAuthenticationState
79
T:Microsoft.AspNetCore.Components.CascadingValue`1
810
T:Microsoft.AspNetCore.Components.Forms.DataAnnotationsValidator
911
T:Microsoft.AspNetCore.Components.Forms.EditForm

src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.Manual.cs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,32 @@ public readonly partial struct RenderTreeFrame
4949
// Built-in components: https://github.com/aspnet/AspNetCore/issues/8825
5050
namespace Microsoft.AspNetCore.Components
5151
{
52+
public partial class AuthorizeView : Microsoft.AspNetCore.Components.ComponentBase
53+
{
54+
public AuthorizeView() { }
55+
[Microsoft.AspNetCore.Components.ParameterAttribute]
56+
public Microsoft.AspNetCore.Components.RenderFragment<Microsoft.AspNetCore.Components.AuthenticationState> Authorized { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; } }
57+
[Microsoft.AspNetCore.Components.ParameterAttribute]
58+
public Microsoft.AspNetCore.Components.RenderFragment Authorizing { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; } }
59+
[Microsoft.AspNetCore.Components.ParameterAttribute]
60+
public Microsoft.AspNetCore.Components.RenderFragment<Microsoft.AspNetCore.Components.AuthenticationState> ChildContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; } }
61+
[Microsoft.AspNetCore.Components.ParameterAttribute]
62+
public Microsoft.AspNetCore.Components.RenderFragment NotAuthorized { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; } }
63+
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { }
64+
[System.Diagnostics.DebuggerStepThroughAttribute]
65+
protected override System.Threading.Tasks.Task OnParametersSetAsync() { throw null; }
66+
}
67+
68+
public partial class CascadingAuthenticationState : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable
69+
{
70+
public CascadingAuthenticationState() { }
71+
[Microsoft.AspNetCore.Components.ParameterAttribute]
72+
public Microsoft.AspNetCore.Components.RenderFragment ChildContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } private set { throw null; } }
73+
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { }
74+
protected override void OnInit() { }
75+
void System.IDisposable.Dispose() { }
76+
}
77+
5278
public partial class CascadingValue<T> : Microsoft.AspNetCore.Components.IComponent
5379
{
5480
public CascadingValue() { }

src/Components/Components/ref/Microsoft.AspNetCore.Components.netstandard2.0.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,6 @@ public event Microsoft.AspNetCore.Components.AuthenticationStateChangedHandler A
1616
public abstract System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.AuthenticationState> GetAuthenticationStateAsync();
1717
protected void NotifyAuthenticationStateChanged(System.Threading.Tasks.Task<Microsoft.AspNetCore.Components.AuthenticationState> task) { }
1818
}
19-
public partial class AuthorizeView : Microsoft.AspNetCore.Components.ComponentBase
20-
{
21-
public AuthorizeView() { }
22-
[Microsoft.AspNetCore.Components.ParameterAttribute]
23-
public Microsoft.AspNetCore.Components.RenderFragment<Microsoft.AspNetCore.Components.AuthenticationState> Authorized { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
24-
[Microsoft.AspNetCore.Components.ParameterAttribute]
25-
public Microsoft.AspNetCore.Components.RenderFragment Authorizing { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
26-
[Microsoft.AspNetCore.Components.ParameterAttribute]
27-
public Microsoft.AspNetCore.Components.RenderFragment<Microsoft.AspNetCore.Components.AuthenticationState> ChildContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
28-
[Microsoft.AspNetCore.Components.ParameterAttribute]
29-
public Microsoft.AspNetCore.Components.RenderFragment NotAuthorized { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
30-
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { }
31-
[System.Diagnostics.DebuggerStepThroughAttribute]
32-
protected override System.Threading.Tasks.Task OnParametersSetAsync() { throw null; }
33-
}
3419
[Microsoft.AspNetCore.Components.BindElementAttribute("select", null, "value", "onchange")]
3520
[Microsoft.AspNetCore.Components.BindElementAttribute("textarea", null, "value", "onchange")]
3621
[Microsoft.AspNetCore.Components.BindInputElementAttribute("checkbox", null, "checked", "onchange")]
@@ -85,15 +70,6 @@ public static partial class BindMethods
8570
public static System.Action<Microsoft.AspNetCore.Components.UIEventArgs> SetValueHandler(System.Action<string> setter, string existingValue) { throw null; }
8671
public static System.Action<Microsoft.AspNetCore.Components.UIEventArgs> SetValueHandler<T>(System.Action<T> setter, T existingValue) { throw null; }
8772
}
88-
public partial class CascadingAuthenticationState : Microsoft.AspNetCore.Components.ComponentBase, System.IDisposable
89-
{
90-
public CascadingAuthenticationState() { }
91-
[Microsoft.AspNetCore.Components.ParameterAttribute]
92-
public Microsoft.AspNetCore.Components.RenderFragment ChildContent { [System.Runtime.CompilerServices.CompilerGeneratedAttribute]get { throw null; } }
93-
protected override void BuildRenderTree(Microsoft.AspNetCore.Components.RenderTree.RenderTreeBuilder builder) { }
94-
protected override void OnInit() { }
95-
void System.IDisposable.Dispose() { }
96-
}
9773
[System.AttributeUsageAttribute(System.AttributeTargets.Property, AllowMultiple=false, Inherited=false)]
9874
public sealed partial class CascadingParameterAttribute : System.Attribute
9975
{

0 commit comments

Comments
 (0)