Udostępnij za pośrednictwem


IOutputChannelStore.WriteAsync(String, String, CancellationToken) Method

Definition

Caution

This method is deprecated. Use CreateChannelAsync instead to create a channel to write to.

Writes input to the channel. If the channel does not exist, it creates one. This method currently mimics the behavior expected from TextWriter.

[System.Obsolete("This method is deprecated. Use CreateChannelAsync instead to create a channel to write to.", false)]
public System.Threading.Tasks.Task WriteAsync (string channelName, string message, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("This method is deprecated. Use CreateChannelAsync instead to create a channel to write to.", false)>]
abstract member WriteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteAsync (channelName As String, message As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

channelName
String

Name of channel to append input to.

message
String

Message to be output.

cancellationToken
CancellationToken

Cancellation token.

Returns

A Task representing the asynchronous operation.

Attributes

Applies to