コード例 #1
0
        protected override void BuildRenderTree(RenderTreeBuilder builder)
        {
            var portal = PortalBinder?.GetPortal(PortalName);

            InvokeAsync(
                async() =>
            {
                await Task.CompletedTask;
                portal.RenderContent(ChildContent);
            });
        }
コード例 #2
0
 /// <inheritdoc/>
 protected override void OnInitialized()
 {
     PortalBinder?.RegisterPortal(Name, this);
 }
コード例 #3
0
 public void Dispose() => PortalBinder?.GetPortal(PortalName)?.RenderContent(builder => builder.AddContent(0, ""));