PipeReadWriteExtensions.ReadAsync(TMessage) Method

Tungsten Suite

PipeReadWriteExtensionsReadAsyncTMessage Method

Waits for a message to be read from the pipe

Namespace:  W.IO.Pipes
Assembly:  Tungsten.IO.Pipes (in Tungsten.IO.Pipes.dll) Version: 2.0.3
Syntax
C#
public static Task<TMessage> ReadAsync<TMessage>(
	this Pipe<TMessage> pipe
)

Parameters

pipe
Type: W.IO.PipesPipeTMessage
The pipe from which to read data

Type Parameters

TMessage

[Missing <typeparam name="TMessage"/> documentation for "M:W.IO.Pipes.PipeReadWriteExtensions.ReadAsync``1(W.IO.Pipes.Pipe{``0})"]

Return Value

Type: TaskTMessage
The message received or null if the read failed (the pipe was closed)

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PipeTMessage. 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