Exemple #1
0
 protected override async Task OnAfterRenderAsync(bool firstRender)
 {
     if (firstRender)
     {
         await NavigationInterception.EnableNavigationInterceptionAsync();
     }
 }
 public Task OnAfterRenderAsync()
 {
     if (_navigationInterceptionEnabled)
     {
         return(Task.CompletedTask);
     }
     _navigationInterceptionEnabled = true;
     return(NavigationInterception.EnableNavigationInterceptionAsync());
 }
Exemple #3
0
        Task IHandleAfterRender.OnAfterRenderAsync()
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;
                return(NavigationInterception.EnableNavigationInterceptionAsync());
            }

            return(Task.CompletedTask);
        }
Exemple #4
0
        public async Task OnAfterRenderAsync()
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;
                await NavigationInterception.EnableNavigationInterceptionAsync();

                Refresh();
            }
        }
Exemple #5
0
        protected override async Task OnAfterRenderAsync(bool firstRender)
        {
            if (!this.navigationInterceptionEnabled /* && ComponentContext.IsConnected*/)
            {
                this.navigationInterceptionEnabled = true;
                await SwitchContent(false);

                await NavigationInterception.EnableNavigationInterceptionAsync();
            }
        }
#pragma warning disable CA1033
        Task IHandleAfterRender.OnAfterRenderAsync()
#pragma warning restore CA1033
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;
                return(NavigationInterception.EnableNavigationInterceptionAsync());
            }

            return(Task.CompletedTask);
        }
        public Task OnAfterRenderAsync()
        {
            if (!_navigationInterceptionEnabled)
            {
                _navigationInterceptionEnabled = true;

                Assumes.Present(NavigationInterception);
                return(NavigationInterception.EnableNavigationInterceptionAsync());
            }

            return(Task.CompletedTask);
        }