ServiceFacade: Bei DoAsync() leere Callback-Actions abfangen

This commit is contained in:
2025-12-30 12:14:02 +01:00
parent 4ac8d1d1f4
commit afbea61d7b

View File

@@ -786,14 +786,14 @@ namespace BeWo.ServiceProxy
DispatcherPriority.Normal,
(Action)delegate
{
pCallback();
pCallback?.Invoke();
});
Action<Exception> tErrorCallback = (t) => dispatcher.BeginInvoke(
DispatcherPriority.Normal,
(Action)delegate
{
pErrorCallback(t);
pErrorCallback?.Invoke(t);
});
DoAsync<TClient, TInterface>(pAction, tCallback, tErrorCallback, showWaitDialog);