C# Class StompNet.IO.StompSerialFrameWriter

Wrapper around an IStompFrameWriter for thread-safety. STOMP frames will be written in a sequential/serial FIFO manner.
Inheritance: IStompFrameWriter
Mostra file Open project: krlito/StompNet

Public Methods

Method Description
Dispose ( ) : void
StompSerialFrameWriter ( IStompFrameWriter writer ) : System.Threading

Constructor.

WriteAsync ( Frame frame, CancellationToken cancellationToken ) : Task

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

StompSerialFrameWriter() public method

Constructor.
public StompSerialFrameWriter ( IStompFrameWriter writer ) : System.Threading
writer IStompFrameWriter Frame writer to be wrapped.
return System.Threading

WriteAsync() public method

public WriteAsync ( Frame frame, CancellationToken cancellationToken ) : Task
frame StompNet.Models.Frames.Frame
cancellationToken System.Threading.CancellationToken
return Task