src/NugetProxy.Protocol/Extensions/NuGetClientFactoryExtensions.cs
/// <summary>
/// Create a new <see cref="CatalogProcessor"/> to discover and download catalog leafs.
/// Leafs are processed by the <see cref="ICatalogLeafProcessor"/>.
/// </summary>
/// <param name="clientFactory">The factory used to create NuGet clients.</param>
/// <param name="cursor">Cursor to track succesfully processed leafs. Leafs before the cursor are skipped.</param>
/// <param name="leafProcessor">The leaf processor.</param>
/// <param name="options">The options to configure catalog processing.</param>
/// <param name="logger">The logger used for telemetry.</param>
/// <param name="cancellationToken">A token to cancel the task.</param>
/// <returns>The catalog processor.</returns>
Create a new  to discover and download catalog leafs.
Leafs are processed by the .
Create a new to discover and download catalog leafs . Leafs are processed by the .
public static async Task<CatalogProcessor> CreateCatalogProcessorAsync(
            this NuGetClientFactory clientFactory,
            ICursor cursor,
            ICatalogLeafProcessor leafProcessor,
            CatalogProcessorOptions options,
            ILogger<CatalogProcessor> logger,
            CancellationToken cancellationToken = default)
        {
            var catalogClient = await clientFactory.CreateCatalogClientAsync(cancellationToken);
            return new CatalogProcessor(
                cursor,
                catalogClient,
                leafProcessor,
                options,
                logger);
        }
public static async Task < CatalogProcessor > CreateCatalogProcessorAsync ( this NuGetClientFactory clientFactory , ICursor cursor , ICatalogLeafProcessor leafProcessor , CatalogProcessorOptions options , ILogger < CatalogProcessor > logger , CancellationToken cancellationToken = default ) { var catalogClient = await clientFactory . CreateCatalogClientAsync ( cancellationToken ) ; return new CatalogProcessor ( cursor , catalogClient , leafProcessor , options , logger ) ; }
Create a new  to discover and download catalog leafs.
Create a new to discover and download catalog leafs .
The catalog processor.
The catalog processor .
NuGetClientFactory
this
cursor
ICursor
Cursor to track succesfully processed leafs. Leafs before the cursor are skipped.
Cursor to track succesfully processed leafs . Leafs before the cursor are skipped .
leafProcessor
ICatalogLeafProcessor
The leaf processor.
The leaf processor .
options
CatalogProcessorOptions
The options to configure catalog processing.
The options to configure catalog processing .
logger
ILogger<CatalogProcessor>
The logger used for telemetry.
The logger used for telemetry .
cancellationToken
CancellationToken
A token to cancel the task.
A token to cancel the task .
clientFactory
The factory used to create NuGet clients.
The factory used to create NuGet clients .