Exemplo n.º 1
0
        public Task StartAsync(
            string pipeName,
            byte[] pipeMessage)
        {
            _pipeName    = pipeName;
            _pipeMessage = pipeMessage;
            _buf         = _thread.Loop.Libuv.buf_init(_ptr, 4);

            DispatchPipe = new UvPipeHandle(Log);

            var tcs = new TaskCompletionSource <int>(this, TaskCreationOptions.RunContinuationsAsynchronously);

            _thread.Post(StartCallback, tcs);
            return(tcs.Task);
        }