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);
}
internal override void SetCompletedSynchronously() { if (!_isWrite) { _pipeStream.UpdateMessageCompletion(_isMessageComplete); } TrySetResult(_numBytes); }