var customer = "A";
Func<int, bool> updateProgress = (int progress) =>
{
Dispatcher.Invoke(() => UpdateProgress(customer, progress));
return true;
};
var files = await service.DoSomeAction(updateProgress);
// public Task DoSomeAction(Func<int, bool> updateProgress)
270000cookie-checkC# pass function as parameter