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()); }
Task IHandleAfterRender.OnAfterRenderAsync() { if (!_navigationInterceptionEnabled) { _navigationInterceptionEnabled = true; return(NavigationInterception.EnableNavigationInterceptionAsync()); } return(Task.CompletedTask); }
public async Task OnAfterRenderAsync() { if (!_navigationInterceptionEnabled) { _navigationInterceptionEnabled = true; await NavigationInterception.EnableNavigationInterceptionAsync(); Refresh(); } }
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); }