Hi there
Is it possible to check whether any asynchronous saves are being performed/pending in the dataportal?
I would like to insure that all async saves are completed, before the application shuts down.. (WPF desktop app)
Regards,
Fredrik
You can probably create a static type that handles the static methods on Csla.DataPortal (DataPortalInvoke and DataPortalInvokeComplete), and in your event handlers implement threadsafe increment/decrement counters (probably using System.Threading.Interlocked) to maintain a count of outstanding data portal calls.
Copyright (c) Marimer LLC