async Task IEventHandler <PulledToRefresh> .HandleAsync(PulledToRefresh payload) { payload.IsHandled = true; await LoadDataAsync(); StateHasChanged(); }
private async Task RaiseEventAsync() { log.Debug("Raising event."); var e = new PulledToRefresh(); await events.PublishAsync(e); log.Debug($"Event handled result '{e.IsHandled}'."); if (!e.IsHandled) { await navigator.ReloadAsync(); } }
Task IEventHandler <PulledToRefresh> .HandleAsync(PulledToRefresh payload) { payload.IsHandled = true; _ = LoadSelectedPeriodAsync(); return(Task.CompletedTask); }