Microsoft.AspNet.Server.Kestrel.Http.ListenerPrimary.OnListenPipe C# (CSharp) 메소드

OnListenPipe() 개인적인 메소드

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
리턴 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);
        }