Click or drag to resize
S101Client Constructor (IDisposable, ReadAsyncCallback, WriteAsyncCallback, IS101Logger, Int32, Int32)
Initializes a new instance of the S101Client class.

Namespace: Lawo.EmberPlusSharp.S101
Assembly: Lawo.EmberPlusSharp (in Lawo.EmberPlusSharp.dll) Version: 1.4.1707.27006
Syntax
C#
public S101Client(
	IDisposable connection,
	ReadAsyncCallback readAsync,
	WriteAsyncCallback writeAsync,
	IS101Logger logger,
	int timeout,
	int bufferSize
)

Parameters

connection
Type: SystemIDisposable
An object that represents an already established connection through which bytes are read and written. After a call to the Dispose method of this object, both readAsync and writeAsync must complete by throwing either an ObjectDisposedException or an OperationCanceledException.
readAsync
Type: Lawo.IOReadAsyncCallback
References the method to be called when bytes need to be read through the connection.
writeAsync
Type: Lawo.IOWriteAsyncCallback
References the method to be called when bytes need to be written through the connection.
logger
Type: Lawo.EmberPlusSharp.S101IS101Logger
The logger to log activity to, can be null.
timeout
Type: SystemInt32
The total amount of time, in milliseconds, the S101Client instance will wait before the connection is shut down due to a failure of the other party to respond. Specify -1 to wait indefinitely.
bufferSize
Type: SystemInt32
The size of the internal read and write buffers in bytes.
Exceptions
ExceptionCondition
ArgumentNullExceptionconnection, readAsync and/or writeAsync equal null.
ArgumentOutOfRangeExceptionbufferSize is 0 or negative and/or timeout is less than -1.
NotSupportedExceptionS101Client is not supported when SynchronizationContext.Current == null.
Remarks
See S101Client remarks for more information.
See Also