Microsoft.AspNet.Server.Kestrel.Http.ListenerPrimary.OnListenPipe C# (CSharp) Method

OnListenPipe() private method

private OnListenPipe ( UvStreamHandle pipe, int status, Exception error, object state ) : void
pipe Microsoft.AspNet.Server.Kestrel.Networking.UvStreamHandle
status int
error System.Exception
state object
return void
        private void OnListenPipe(UvStreamHandle pipe, int status, Exception error, object state)
        {
            if (status < 0)
            {
                return;
            }

            var dispatchPipe = new UvPipeHandle(Log);
            dispatchPipe.Init(Thread.Loop, true);

            try
            {
                pipe.Accept(dispatchPipe);
            }
            catch (UvException ex)
            {
                dispatchPipe.Dispose();
                Log.LogError("ListenerPrimary.OnListenPipe", ex);
                return;
            }

            _dispatchPipes.Add(dispatchPipe);
        }