Пример #1
0
        async Task IEventHandler <PulledToRefresh> .HandleAsync(PulledToRefresh payload)
        {
            payload.IsHandled = true;
            await LoadDataAsync();

            StateHasChanged();
        }
Пример #2
0
        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();
            }
        }
Пример #3
0
 Task IEventHandler <PulledToRefresh> .HandleAsync(PulledToRefresh payload)
 {
     payload.IsHandled = true;
     _ = LoadSelectedPeriodAsync();
     return(Task.CompletedTask);
 }