Class CascadingUserAccount<T>
Logs in, where the configured authentication can do so without user interaction, and cascades the resulting user account so that descendants can create entity contexts synchronously. The account is loaded once per component instance, so a login performed later in the session takes effect only when an ancestor recreates this component - as AuthorizeView does when authorisation is granted.
public class CascadingUserAccount<T> : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where T : class, IUserAccount
Type Parameters
T
- Inheritance
-
CascadingUserAccount<T>
- Implements
- Inherited Members
Properties
ChildContent
[Parameter]
public RenderFragment? ChildContent { get; set; }
Property Value
Init
[Parameter]
public EventCallback<T> Init { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builderRenderTreeBuilder
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()