Soenneker.YouTube.Client 4.0.2418

Prefix Reserved
dotnet add package Soenneker.YouTube.Client --version 4.0.2418
                    
NuGet\Install-Package Soenneker.YouTube.Client -Version 4.0.2418
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Soenneker.YouTube.Client" Version="4.0.2418" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.YouTube.Client" Version="4.0.2418" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.YouTube.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Soenneker.YouTube.Client --version 4.0.2418
                    
#r "nuget: Soenneker.YouTube.Client, 4.0.2418"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Soenneker.YouTube.Client@4.0.2418
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Soenneker.YouTube.Client&version=4.0.2418
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.YouTube.Client&version=4.0.2418
                    
Install as a Cake Tool

alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image alternate text is missing from this package README image

Soenneker.YouTube.Client

An async thread-safe singleton for the YouTube client YouTubeExplode.

Install

dotnet add package Soenneker.YouTube.Client

Quick start

using Soenneker.YouTube.Client.Registrars;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
var result = services.AddYouTubeClientUtilAsSingleton();

Adds IYouTubeClientUtil as a singleton service.

What you get

  • IYouTubeClientUtil — An async thread-safe singleton for the YouTube client YouTubeExplode.
  • YouTubeClientUtilRegistrar — An async thread-safe singleton for the YouTube client YouTubeExplode.

API at a glance

API What it does Result / important behavior
YouTubeClientUtilRegistrar.AddYouTubeClientUtilAsSingleton(services) Adds IYouTubeClientUtil as a singleton service. The same service collection, so additional registrations can be chained.
YouTubeClientUtilRegistrar.AddYouTubeClientUtilAsScoped(services) Adds IYouTubeClientUtil as a scoped service. The same service collection, so additional registrations can be chained.

Practical notes

  • Reuse the registered client instead of constructing one per operation.
  • Calls that return a cached or singleton value reuse the same instance until the owning service is disposed.
  • Dispose instances you own when their scope ends so held resources can be released.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
4.0.2418 0 8/30/2026
4.0.2417 0 8/30/2026
4.0.2416 0 8/30/2026
4.0.2415 32 8/30/2026
4.0.2414 35 8/30/2026
4.0.2413 36 8/29/2026
4.0.2412 41 8/29/2026
4.0.2411 39 8/29/2026
4.0.2410 75 8/26/2026
4.0.2409 74 8/26/2026
4.0.2408 74 8/26/2026
4.0.2407 77 8/25/2026
4.0.2406 89 8/22/2026
4.0.2405 84 8/21/2026
4.0.2404 312 8/19/2026
4.0.2403 93 8/18/2026
4.0.2402 97 8/13/2026
4.0.2401 91 8/12/2026
4.0.2400 99 8/9/2026
4.0.2399 108 8/9/2026
Loading failed

Update dependency Soenneker.Utils.HttpClientCache to 4.0.2044 (#2938)