共用方式為


IOutputChannelStore.WriteLineAsync(String, String, CancellationToken) Method

Definition

Caution

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

Writes input as a new line 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 WriteLineAsync (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 WriteLineAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteLineAsync (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