If Action is null, invoke optional
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user