If Action is null, invoke optional

This commit is contained in:
2025-05-07 14:51:22 +02:00
parent 6947a940ad
commit ee1ea653f3

View File

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