Ejemplo n.º 1
0
        public bool EndListen(AsyncIoContext asyncContext)
        {
            asyncContext.Wait();
            asyncContext.NotifyEnd();

            if (asyncContext.Status == NtStatus.PipeConnected)
            {
                return(true);
            }

            asyncContext.StatusBlock.Status.ThrowIf();

            return(false);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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;
        }