Vibrant discussion about CSLA .NET and using the framework to build great business applications.
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. public static async Task<CustomerEntity> GetCustomerAsync(Guid id){ 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}
Are you using the current code in svn? That's the only code that supports your scenario at this point.
Rocky
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.
No I am not. I am using the 4.5.1 alfa version