protected override void BuildRenderTree(RenderTreeBuilder builder) { var portal = PortalBinder?.GetPortal(PortalName); InvokeAsync( async() => { await Task.CompletedTask; portal.RenderContent(ChildContent); }); }
/// <inheritdoc/> protected override void OnInitialized() { PortalBinder?.RegisterPortal(Name, this); }
public void Dispose() => PortalBinder?.GetPortal(PortalName)?.RenderContent(builder => builder.AddContent(0, ""));