Esatto.Win32.HVSocket.HttpClient 3.0.21

dotnet add package Esatto.Win32.HVSocket.HttpClient --version 3.0.21
                    
NuGet\Install-Package Esatto.Win32.HVSocket.HttpClient -Version 3.0.21
                    
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="Esatto.Win32.HVSocket.HttpClient" Version="3.0.21" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Esatto.Win32.HVSocket.HttpClient" Version="3.0.21" />
                    
Directory.Packages.props
<PackageReference Include="Esatto.Win32.HVSocket.HttpClient" />
                    
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 Esatto.Win32.HVSocket.HttpClient --version 3.0.21
                    
#r "nuget: Esatto.Win32.HVSocket.HttpClient, 3.0.21"
                    
#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 Esatto.Win32.HVSocket.HttpClient@3.0.21
                    
#: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=Esatto.Win32.HVSocket.HttpClient&version=3.0.21
                    
Install as a Cake Addin
#tool nuget:?package=Esatto.Win32.HVSocket.HttpClient&version=3.0.21
                    
Install as a Cake Tool

HyperV HttpClient Transport

Provides a binding and transport to allow HyperV communication across VM boundaries without network connections using Hyper-V Sockets.

Example Client running on a guest:

using Esatto.Win32.HVSocket;

using var httpClient = HyperVSocketHttpClient.Create(Guid.Parse("C7240163-6E2B-4466-9E41-FF74E7F0DE47"));
var response = await httpClient.GetStringAsync("/");
Console.WriteLine(response);

Example Client running on the Hypervisor connecting to VM 642d4719-f5d7-477d-9ca3-2c46c280052d:

using Esatto.Win32.HVSocket;

using var httpClient = HyperVSocketHttpClient.Create(
    Guid.Parse("642d4719-f5d7-477d-9ca3-2c46c280052d"),
    Guid.Parse("C7240163-6E2B-4466-9E41-FF74E7F0DE47"));
var response = await httpClient.GetStringAsync("/");
Console.WriteLine(response);

Notes:

  • Replace C7240163-6E2B-4466-9E41-FF74E7F0DE47 with the service ID you register in the registry (see Example Hypervisor Service Registration.reg). When developing a new app, the service ID should be unique and generated specifically for that application.
    • Register your service ID in the hypervisor registry
    • Enable "Guest Services" in the VM settings under "Integration Services"
  • Replace 642d4719-f5d7-477d-9ca3-2c46c280052d with the ID of the VM to which you want to connect or any of the VMID wildcards. The VM ID can be found with Powershell using Get-VM.
  • See Esatto.Win32.HVSocket.KestrelListener for a Kestrel listener implementation
Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows 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.
  • net8.0-windows7.0

    • No dependencies.

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
3.0.21 77 6/21/2025