For performance and throughput purposes, I'd like to handle RetrieveData/WithRetrieveDataMethod using async operations. Is there a way to accomplish this?
Something like:
MVCGridDefinitionTable.Add("MyGrid", new MVCGridBuilder<MyViewModel>()
.AddColumns(...)
.WithRetrieveDataMethodAsync(async (context) =>
{
IMyDataRepo dataRepo = IoC.Resolve<IMyDataRepo>();
List<MyViewModel> data = await dataRepo.GetData(...);
return new QueryResult<MyViewModel>() { Items = data, Total = total };
});
For performance and throughput purposes, I'd like to handle RetrieveData/WithRetrieveDataMethod using async operations. Is there a way to accomplish this?
Something like: