ResourceLoggerService.WatchAnySubscribersAsync(CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.