在任务列表项添加事件中,我有两种方法如下
method1() // 执行时间:3 秒 method2() // 执行时间:2 秒
在完成 method1() 执行之前,它会自动移动到 method2() 并开始执行。不知何故,我能理解这是因为异步事件。如何解决这个问题?
在任务列表项添加事件中,我有两种方法如下
method1() // 执行时间:3 秒 method2() // 执行时间:2 秒
在完成 method1() 执行之前,它会自动移动到 method2() 并开始执行。不知何故,我能理解这是因为异步事件。如何解决这个问题?
If its because of the async event you can make the after event synchronous (SP 2010 and up).
$receiver.Synchronization = "Synchronous"
$receiver.Update()
Check this for modifying event receivers with PowerShell.