SocketExtensions.ReceiveAsync Method (SocketAwaitable)Couchbase .NET SDK 2.0
Begins an asynchronous request to receive data from a connected Socket object using await.

Namespace: Couchbase.IO.Utils
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public static SocketAwaitable ReceiveAsync(
	this SocketAwaitable awaitable
)

Parameters

awaitable
Type: Couchbase.IO.SocketAwaitable
The SocketAwaitable to await on.

Return Value

Type: SocketAwaitable
A SocketAwaitable object ready to be reused.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SocketAwaitable. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also