次の方法で共有


ResourceLoggerService.WatchAnySubscribersAsync(CancellationToken) Method

Definition

Watch for subscribers to the log stream for a resource.

public System.Collections.Generic.IAsyncEnumerable<Aspire.Hosting.ApplicationModel.LogSubscriber> WatchAnySubscribersAsync (System.Threading.CancellationToken cancellationToken = default);
member this.WatchAnySubscribersAsync : System.Threading.CancellationToken -> System.Collections.Generic.IAsyncEnumerable<Aspire.Hosting.ApplicationModel.LogSubscriber>
Public Function WatchAnySubscribersAsync (Optional cancellationToken As CancellationToken = Nothing) As IAsyncEnumerable(Of LogSubscriber)

Parameters

cancellationToken
CancellationToken

Returns

An async enumerable that returns when the first subscriber is added to a log, or when the last subscriber is removed.

Applies to