public async Task Execute(IDispatcher dispatcher) { var reportDescriptors = await _client.GetReportTypes(); dispatcher.Dispatch(new ReceiveReportDescriptorsAction { ReportDescriptors = reportDescriptors }); }
public async Task Execute(IDispatcher dispatcher) { await Utils.ExecuteWithLoading(dispatcher, async() => { var reportDescriptors = await _client.GetReportTypes(); dispatcher.Dispatch(new ReceiveReportDescriptorsAction { ReportDescriptors = reportDescriptors }); }); }