protected async override Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { await CheckCounterIsDisabled(); BWHelperFunctions.CheckIfMobile(); } if (!DisableCounters) { if (!navigationManager.Uri.Equals(CurrentURI)) { CurrentURI = navigationManager.Uri; await CounterHelper.CmdAddCounter(new TSCounter() { Source = navigationManager.Uri, Action = "visit" }); } } await base.OnAfterRenderAsync(firstRender); }
protected override void OnAfterRender(bool firstRender) { if (firstRender) { BWHelperFunctions.CheckIfMobile(); } base.OnAfterRender(firstRender); }
protected async override Task OnAfterRenderAsync(bool firstRender) { if (firstRender) { BWHelperFunctions.CheckIfMobile(); } await CounterHelper.CmdAddCounter(new TSCounter() { Source = navigationManager.Uri, Action = "visit" }); await base.OnAfterRenderAsync(firstRender); }