IOutputChannelStore.WriteAsync(String, String, CancellationToken) Yöntem

Tanım

Dikkat

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

Girişi kanala yazar. Kanal yoksa, bir tane oluşturur. Bu yöntem şu anda TextWriter 'dan beklenen davranışı taklit eder.

[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

Parametreler

channelName
String

Girişin ekleneceği kanalın adı.

message
String

Çıkış olacak ileti.

cancellationToken
CancellationToken

İptal belirteci.

Döndürülenler

Task

TaskZaman uyumsuz işlemi temsil eden.

Öznitelikler

Şunlara uygulanır