/// <summary>
        /// OnAfterRenderAsync
        /// </summary>
        /// <param name="firstRender"></param>
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            if (firstRender)
            {
                PublisherList = await RegistryHelper.GetPublisherListAsync();

                Page = "1";
                _pagedPublisherList  = PublisherList.GetPaged(int.Parse(Page), CommonHelper.PageLengthSmall, PublisherList.Error);
                CommonHelper.Spinner = string.Empty;
                CommonHelper.CheckErrorOrEmpty(_pagedPublisherList, ref _tableView, ref _tableEmpty);
                StateHasChanged();

                _publisherEvent = await RegistryServiceEvents.SubscribePublisherEventsAsync(
                    ev => InvokeAsync(() => PublisherEvent(ev)));
            }
        }
Ejemplo n.º 2
0
 protected override async Task SubscribeEvents() {
     _events = await RegistryServiceEvents.SubscribePublisherEventsAsync(
             ev => InvokeAsync(() => PublisherEvent(ev)));
 }