System.IO.Pipes.PipeStream.UpdateMessageCompletion C# (CSharp) Method

UpdateMessageCompletion() private method

private UpdateMessageCompletion ( bool completion ) : void
completion bool
return void
        internal void UpdateMessageCompletion(bool completion)
        {
            // Set message complete to true because the pipe is broken as well.
            // Need this to signal to readers to stop reading.
            _isMessageComplete = (completion || _state == PipeState.Broken);
        }

Usage Example

Esempio n. 1
0
        internal override void SetCompletedSynchronously()
        {
            if (!_isWrite)
            {
                _pipeStream.UpdateMessageCompletion(_isMessageComplete);
            }

            TrySetResult(_numBytes);
        }