Example #1
0
        private static void UvShutdownCb(IntPtr ptrReq, int status)
        {
            UvPipeStream uvPipeStream = GetObjectFromHandel <UvPipeStream>(ptrReq);

            uvPipeStream.DoDispose();

            Exception arg = null;

            if (status < 0)
            {
                uvPipeStream.LibUv.GetException(status, out arg);
            }
            try
            {
                uvPipeStream._callback(uvPipeStream, status, arg, uvPipeStream._state);
            }
            catch (Exception ex)
            {
                throw ex;
            }
            finally
            {
                uvPipeStream._callback = null;
                uvPipeStream._state    = null;
            }
        }
Example #2
0
 public void PipeConnect(UvPipeStream uvPipeStream, UvPipeHandle uvPipeHandle, string text, PipeConnect_Callback pipeConnectCallback)
 {
     _uv_pipe_connect(uvPipeStream, uvPipeHandle, text, pipeConnectCallback);
 }