System.IO.Pipes.PipeStream.UpdateMessageCompletion C# (CSharp) Méthode

UpdateMessageCompletion() private méthode

private UpdateMessageCompletion ( bool completion ) : void
completion bool
Résultat 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

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

            TrySetResult(_numBytes);
        }