Click or drag to resize

ServiceConnectionSendAndReceiveAsyncT Method (UInt16, ActionOutgoingMessage, FuncIncomingMessage, T, CancellationToken)

Namespace:  Buddy.Networking.ServiceClient
Assembly:  RebornBuddy (in RebornBuddy.exe) Version: 3.3.1; net-4.5.win32; release
Syntax
C#
public Task<T> SendAndReceiveAsync<T>(
	ushort opcode,
	Action<OutgoingMessage> writer,
	Func<IncomingMessage, T> reader,
	CancellationToken ct = null
)

Parameters

opcode
Type: SystemUInt16
writer
Type: SystemActionOutgoingMessage
reader
Type: SystemFuncIncomingMessage, T
ct (Optional)
Type: System.ThreadingCancellationToken

Type Parameters

T

Return Value

Type: TaskT
See Also