Tungsten
![]() |
PipeReadWriteExtensionsWriteAsyncTMessage Method |
Asynchronously write a message to the pipe
Namespace: W.IO.Pipes
Assembly: Tungsten.IO.Pipes (in Tungsten.IO.Pipes.dll) Version: 2.0.3

C#
public static Task<bool> WriteAsync<TMessage>( this Pipe<TMessage> pipe, TMessage message )
Parameters
- pipe
- Type: W.IO.PipesPipeTMessage
The pipe on which to write data - message
- Type: TMessage
The message to write
Type Parameters
- TMessage
[Missing <typeparam name="TMessage"/> documentation for "M:W.IO.Pipes.PipeReadWriteExtensions.WriteAsync``1(W.IO.Pipes.Pipe{``0},``0)"]
Return Value
Type: TaskBooleanTrue if the message was sent successfully, otherwise false
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).