Why does WF4 use this pattern (callbacks via delegates)?
app.Idle = delegate(WorkflowApplicationIdleEventArgs o)
{
syncEvent.Set();
};
This is an anonymous method .
It's easier than writing a separate method, and it allows you to access the syncEvent
local variable without writing a separate class with a field (see my blog for more information).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.