public bool WaitAll(IWaitHandle[] waitHandles, int millisecondsTimeout) { return WaitHandle.WaitAll(waitHandles.Select(x => x.UnderlyingObject).ToArray(),millisecondsTimeout); }
public bool WaitAll(IWaitHandle[] waitHandles) { return WaitHandle.WaitAll(waitHandles.Select(x=>x.UnderlyingObject).ToArray()); }