ResourceLoggerService.GetAllAsync 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.
Overloads
GetAllAsync(IResource) |
Get all logs for a resource. This will return all logs that have been written to the log stream for the resource and then complete. |
GetAllAsync(String) |
Get all logs for a resource. This will return all logs that have been written to the log stream for the resource and then complete. |
GetAllAsync(IResource)
- Source:
- ResourceLoggerService.cs
- Source:
- ResourceLoggerService.cs
Get all logs for a resource. This will return all logs that have been written to the log stream for the resource and then complete.
public System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>> GetAllAsync(Aspire.Hosting.ApplicationModel.IResource resource);
member this.GetAllAsync : Aspire.Hosting.ApplicationModel.IResource -> System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>>
Public Function GetAllAsync (resource As IResource) As IAsyncEnumerable(Of IReadOnlyList(Of LogLine))
Parameters
- resource
- IResource
The resource to get all logs for.
Returns
An async enumerable that returns all logs that have been written to the log stream and then completes.
Applies to
GetAllAsync(String)
- Source:
- ResourceLoggerService.cs
- Source:
- ResourceLoggerService.cs
Get all logs for a resource. This will return all logs that have been written to the log stream for the resource and then complete.
public System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>> GetAllAsync(string resourceName);
member this.GetAllAsync : string -> System.Collections.Generic.IAsyncEnumerable<System.Collections.Generic.IReadOnlyList<Aspire.Hosting.ApplicationModel.LogLine>>
Public Function GetAllAsync (resourceName As String) As IAsyncEnumerable(Of IReadOnlyList(Of LogLine))
Parameters
- resourceName
- String
The resource name
Returns
An async enumerable that returns all logs that have been written to the log stream and then completes.