 | StreamRpcClientHandlerAttach Method |
[This is preliminary documentation and is subject to change.]
Namespace:
JsonRpc.Streams
Assembly:
JsonRpc.Streams (in JsonRpc.Streams.dll) Version: 0.5.4+1bad715934a0ae5922832940ca44bbbdaa509cfe
Syntaxpublic IDisposable Attach(
MessageReader reader,
MessageWriter writer
)
Public Function Attach (
reader As MessageReader,
writer As MessageWriter
) As IDisposable
Dim instance As StreamRpcClientHandler
Dim reader As MessageReader
Dim writer As MessageWriter
Dim returnValue As IDisposable
returnValue = instance.Attach(reader,
writer)
public:
IDisposable^ Attach(
MessageReader^ reader,
MessageWriter^ writer
)
member Attach :
reader : MessageReader *
writer : MessageWriter -> IDisposable
Parameters
- reader
- Type: JsonRpc.StreamsMessageReader
[Missing <param name="reader"/> documentation for "M:JsonRpc.Streams.StreamRpcClientHandler.Attach(JsonRpc.Streams.MessageReader,JsonRpc.Streams.MessageWriter)"]
- writer
- Type: JsonRpc.StreamsMessageWriter
[Missing <param name="writer"/> documentation for "M:JsonRpc.Streams.StreamRpcClientHandler.Attach(JsonRpc.Streams.MessageReader,JsonRpc.Streams.MessageWriter)"]
Return Value
Type:
IDisposableA
IDisposable that detaches the handlers when disposed.
RemarksIf you do not attach any
MessageReader, you must not send any non-notification requests,
as they may lead to non-finishing tasks.
See Also