Interface IMessageStreamBase
Namespace: Void.Proxy.Api.Network.Streams
Assembly: Void.Proxy.Api.dll
Defines lifecycle and flushing operations shared by proxy message streams.
public interface IMessageStreamBase : IDisposable, IAsyncDisposableImplements
Properties
CanRead
Gets whether the stream currently supports reading.
bool CanRead { get; }Property Value
CanWrite
Gets whether the stream currently supports writing.
bool CanWrite { get; }Property Value
IsAlive
Gets whether the stream remains open and usable.
bool IsAlive { get; }Property Value
Methods
Close()
Closes the stream and prevents further I/O.
void Close()Flush()
Flushes buffered output to the underlying stream.
void Flush()FlushAsync(CancellationToken)
Asynchronously flushes buffered output to the underlying stream.
ValueTask FlushAsync(CancellationToken cancellationToken = default)Parameters
cancellationToken CancellationToken
A token used to cancel the flush.
Returns
A task that completes when buffered output has been flushed.