powershell register-objectevent 操作块是否按顺序执行?
例如:
Register-ObjectEvent -InputObject $someObject -EventName SomeEvent -Action {
Write-Host "start process";
#some time taking process;
Write-Host "end process";
}
如果有几个“SomeEvent”事件一起触发。动作块会顺序执行还是并行执行?如果它是并行的,如何使它成为连续的?