public bool EndListen(AsyncIoContext asyncContext) { asyncContext.Wait(); asyncContext.NotifyEnd(); if (asyncContext.Status == NtStatus.PipeConnected) { return(true); } asyncContext.StatusBlock.Status.ThrowIf(); return(false); }
public bool EndListen(AsyncIoContext asyncContext) { asyncContext.Wait(); asyncContext.NotifyEnd(); if (asyncContext.Status == NtStatus.PipeConnected) { return(true); } if (asyncContext.StatusBlock.Status >= NtStatus.Error) { Win32.Throw(asyncContext.StatusBlock.Status); } return(false); }
public bool EndListen(AsyncIoContext asyncContext) { asyncContext.Wait(); asyncContext.NotifyEnd(); if (asyncContext.Status == NtStatus.PipeConnected) return true; if (asyncContext.StatusBlock.Status >= NtStatus.Error) Win32.ThrowLastError(asyncContext.StatusBlock.Status); return false; }