Partager via


ResourceLoggerService.WatchAsync Method

Definition

Overloads

WatchAsync(IResource)

Watch for changes to the log stream for a resource.

WatchAsync(String)

Watch for changes to the log stream for a resource.

WatchAsync(IResource)

Source:
ResourceLoggerService.cs
Source:
ResourceLoggerService.cs

Watch for changes to the log stream for a resource.

public System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>> WatchAsync (Aspire.Hosting.ApplicationModel.IResource resource);
member this.WatchAsync : Aspire.Hosting.ApplicationModel.IResource -> System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>>
Public Function WatchAsync (resource As IResource) As IAsyncEnumerable(Of IReadOnlyList(Of LogLine))

Parameters

resource
IResource

The resource to watch for logs.

Returns

An async enumerable that returns the logs as they are written.

Applies to

WatchAsync(String)

Source:
ResourceLoggerService.cs
Source:
ResourceLoggerService.cs

Watch for changes to the log stream for a resource.

public System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>> WatchAsync (string resourceName);
member this.WatchAsync : string -> System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>>
Public Function WatchAsync (resourceName As String) As IAsyncEnumerable(Of IReadOnlyList(Of LogLine))

Parameters

resourceName
String

The resource name

Returns

An async enumerable that returns the logs as they are written.

Applies to