I am having troubles with an awaitable function within a DataPortal_Fetch operation. The fetch returns immediately and does not do the rest of operations after the Await. If I take the awaitable function out the operation succeeds. I am using 4.5.1.
{
return await DataPortal.FetchAsync<CustomerEntity>(
new SingleCriteria<CustomerEntity, Guid>(id));
}
protected async Task DataPortal_Fetch(SingleCriteria<CustomerEntity, Guid> criteria)
{
await Task.Delay(2000);
// do some work - doesn't get here
}
Why would you want to introduce an asynchronous operation to a dataportal method?
I am calling another business object to get some data that may only have an async operation to fetch the data.
Are you using the current code in svn? That's the only code that supports your scenario at this point.
No I am not. I am using the 4.5.1 alfa version
Copyright (c) Marimer LLC