SharpClaw.SidecarHost.InProcess 0.5.0-dev.20260920.1

This is a prerelease version of SharpClaw.SidecarHost.InProcess.
dotnet add package SharpClaw.SidecarHost.InProcess --version 0.5.0-dev.20260920.1
                    
NuGet\Install-Package SharpClaw.SidecarHost.InProcess -Version 0.5.0-dev.20260920.1
                    
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="SharpClaw.SidecarHost.InProcess" Version="0.5.0-dev.20260920.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SharpClaw.SidecarHost.InProcess" Version="0.5.0-dev.20260920.1" />
                    
Directory.Packages.props
<PackageReference Include="SharpClaw.SidecarHost.InProcess" />
                    
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 SharpClaw.SidecarHost.InProcess --version 0.5.0-dev.20260920.1
                    
#r "nuget: SharpClaw.SidecarHost.InProcess, 0.5.0-dev.20260920.1"
                    
#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 SharpClaw.SidecarHost.InProcess@0.5.0-dev.20260920.1
                    
#: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=SharpClaw.SidecarHost.InProcess&version=0.5.0-dev.20260920.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SharpClaw.SidecarHost.InProcess&version=0.5.0-dev.20260920.1&prerelease
                    
Install as a Cake Tool

SharpClaw.SidecarHost.InProcess

SharpClaw.SidecarHost.InProcess loads one explicitly trusted .NET package into a collectible assembly context. It parses package.json, validates hostMode: in-process, creates the package instance, and compiles the same ModuleSDK graph used by sidecar hosting.

Host Composition

InProcessRegistrationHost.LoadAsync returns validated service descriptors and the compiled graph. The application host adds those descriptors to its service collection, builds its provider, and calls Bind. InProcessModuleInvoker resolves scoped handlers from that provider for each invocation.

await using var package = await InProcessRegistrationHost.LoadAsync(packageDirectory);

var services = new ServiceCollection();
foreach (var descriptor in package.ServiceDescriptors)
    ((ICollection<ServiceDescriptor>)services).Add(descriptor);

await using var provider = services.BuildServiceProvider(new ServiceProviderOptions
{
    ValidateOnBuild = true,
    ValidateScopes = true,
});

package.Bind(provider);
await package.StartAsync(hostVersion, features, cancellationToken);

Authority

The host issues action, endpoint, CLI, tool, and storage authority. The invoker does not create caller identity or substitute an outcome. It resolves only the handler selected by the compiled graph.

Lifetime

Create one registration host for each loaded package. Stop package lifecycle behavior before disposal. Disposal unloads the collectible context after the package has released its references.

Out-of-process hosting remains the default for optional packages. Use this package only for an explicit in-process trust decision.

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 (1)

Showing the top 1 NuGet packages that depend on SharpClaw.SidecarHost.InProcess:

Package Downloads
SharpClaw.SidecarHost.OutOfProcess

Runs SharpClaw .NET modules in the default out-of-process host model over the SharpClaw foreign-module protocol.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.5.0-dev.20260920.1 31 9/20/2026
0.5.0-dev.20260919.3 65 9/19/2026