C# Class Lawo.EmberPlusSharp.S101.S101Writer

Represents a writer that provides the means to generate S101-encoded messages.
See the "Ember+ Specification"Ember+ Specification, chapter "Message Framing".
Mostra file Open project: Lawo/ember-plus-sharp Class Usage Examples

Public Methods

Method Description
WriteOutOfFrameByteAsync ( byte value, CancellationToken cancellationToken ) : Task

Writes value as an out-of-frame byte.

Private Methods

Method Description
AssertNotDisposed ( ) : void
DisposeAsync ( CancellationToken cancellationToken ) : Task
DisposeCoreAsync ( CancellationToken cancellationToken ) : Task
S101Writer ( WriteAsyncCallback writeAsync ) : System
S101Writer ( WriteAsyncCallback writeAsync, int bufferSize ) : System
WriteMessageAsync ( S101Message message, CancellationToken cancellationToken ) : Task
WriteMessageCoreAsync ( S101Message message, CancellationToken cancellationToken ) : Task
WriteOutOfFrameByteCoreAsync ( byte value, CancellationToken cancellationToken ) : Task

Method Details

WriteOutOfFrameByteAsync() public method

Writes value as an out-of-frame byte.
equals 0xFE.
public WriteOutOfFrameByteAsync ( byte value, CancellationToken cancellationToken ) : Task
value byte The byte to write.
cancellationToken System.Threading.CancellationToken The token to monitor for cancellation requests.
return Task