ContentServiceExtensions
Pennington.Content
Helpers that collapse the repeated foreach service { … } fan-out patterns across consumers of IEnumerable of IContentService.
Methods
CollectContentToCopyAsync
#public static Task<ImmutableList<ContentToCopy>> CollectContentToCopyAsync(IEnumerable<IContentService> services)
Parameters
servicesIEnumerable<IContentService>
Returns
Task<ImmutableList<ContentToCopy>>CollectCrossReferencesAsync
#public static Task<ImmutableList<CrossReference>> CollectCrossReferencesAsync(IEnumerable<IContentService> services)
Parameters
servicesIEnumerable<IContentService>
Returns
Task<ImmutableList<CrossReference>>CollectIndexableEntriesAsync
#public static Task<ImmutableList<ContentTocItem>> CollectIndexableEntriesAsync(IEnumerable<IContentService> services)
Parameters
servicesIEnumerable<IContentService>
Returns
Task<ImmutableList<ContentTocItem>>CollectTocEntriesAsync
#public static Task<ImmutableList<ContentTocItem>> CollectTocEntriesAsync(IEnumerable<IContentService> services)
Parameters
servicesIEnumerable<IContentService>
Returns
Task<ImmutableList<ContentTocItem>>DiscoverAllAsync
#public static IAsyncEnumerable<DiscoveredItem> DiscoverAllAsync(IEnumerable<IContentService> services, CancellationToken cancellationToken = default)
Parameters
servicesIEnumerable<IContentService>cancellationTokenCancellationToken
Returns
IAsyncEnumerable<DiscoveredItem>GetAllRecordsAsync
#public static IAsyncEnumerable<ContentRecord> GetAllRecordsAsync(IEnumerable<IContentService> services, CancellationToken cancellationToken = default)
Parameters
servicesIEnumerable<IContentService>cancellationTokenCancellationToken
Returns
IAsyncEnumerable<ContentRecord>ParseAllContentAsync
#public static IAsyncEnumerable<ParsedItem> ParseAllContentAsync(IEnumerable<IContentService> services, CancellationToken cancellationToken = default)
Parameters
servicesIEnumerable<IContentService>cancellationTokenCancellationToken
Returns
IAsyncEnumerable<ParsedItem>SourceServices
#public static IEnumerable<IContentService> SourceServices(IEnumerable<IContentService> services)
Parameters
servicesIEnumerable<IContentService>
Returns
IEnumerable<IContentService>Pennington.Content.ContentServiceExtensions
namespace Pennington.Content;
/// Helpers that collapse the repeated foreach service { … } fan-out patterns across consumers of IEnumerable of IContentService.
public class ContentServiceExtensions
{
public static Task<ImmutableList<ContentToCopy>> CollectContentToCopyAsync(IEnumerable<IContentService> services)
;
public static Task<ImmutableList<CrossReference>> CollectCrossReferencesAsync(IEnumerable<IContentService> services)
;
public static Task<ImmutableList<ContentTocItem>> CollectIndexableEntriesAsync(IEnumerable<IContentService> services)
;
public static Task<ImmutableList<ContentTocItem>> CollectTocEntriesAsync(IEnumerable<IContentService> services)
;
public static IAsyncEnumerable<DiscoveredItem> DiscoverAllAsync(IEnumerable<IContentService> services, CancellationToken cancellationToken = default)
;
public static IAsyncEnumerable<ContentRecord> GetAllRecordsAsync(IEnumerable<IContentService> services, CancellationToken cancellationToken = default)
;
public static IAsyncEnumerable<ParsedItem> ParseAllContentAsync(IEnumerable<IContentService> services, CancellationToken cancellationToken = default)
;
public static IEnumerable<IContentService> SourceServices(IEnumerable<IContentService> services)
;
}