Node.Lib
1.0.11
See the version list below for details.
dotnet add package Node.Lib --version 1.0.11
NuGet\Install-Package Node.Lib -Version 1.0.11
<PackageReference Include="Node.Lib" Version="1.0.11" />
<PackageVersion Include="Node.Lib" Version="1.0.11" />
<PackageReference Include="Node.Lib" />
paket add Node.Lib --version 1.0.11
#r "nuget: Node.Lib, 1.0.11"
#:package Node.Lib@1.0.11
#addin nuget:?package=Node.Lib&version=1.0.11
#tool nuget:?package=Node.Lib&version=1.0.11
Node.Lib
The hosting pieces every per-user local node in SharpAstro shares, lifted out of tianwen and pilot (phase 6 of pilot v2's design). Two packages:
| Assembly | What | Depends on |
|---|---|---|
Node.Lib |
NodeSocketLocation (where an application's per-user socket and data folder are; Resolve, TryGetNamed, the sun_path limit, the lock path, the socket-connected HTTP handler, a listening probe) and NodeLock (one node per socket, cleared and bound only by its holder) |
nothing |
Node.Lib.Hosting |
NodeSocketHosting: Kestrel on the socket the lock admits it to, owner-only on Unix |
ASP.NET Core |
A client takes Node.Lib alone, so it never carries ASP.NET.
Who uses it
- pilot:
Pilot.Contracts.NodeSocketis pilot's names (pilot2,PILOT_NODE_SOCKET) over aNodeSocketLocation; the node takes the lock and hosting from here;NodeHoldersays how a refused node asks the holder who it is. - tianwen (to move):
TianWen.Hosting.Contracts.Api.NodeSocket,TianWen.Hosting.NodeLockandTianWen.Hosting.Extensions.NodeSocketHostingare the originals these were lifted from. Its socket lives under its own data root, whichNodeSocketLocation'ssocketFoldertakes (() => TianWenDataRoot.Directory.FullName), and its clients askTryGetNamed, which is here too.
Next
- pilot and tianwen take it through a
UseLocalNodeLibswitch (the org's sibling-source pattern). - Then the rest of the shared table in pilot v2's design: local-only mode, seeing-is-free / commands-need-control (pilot's LAN gate over LAN.Lib's grants), the event broadcaster with a bounded queue per client, jobs, the notifications ring.
Build and test
dotnet build
dotnet test src/Node.Lib.Tests
| Product | Versions 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. |
-
net10.0
- No dependencies.
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Node.Lib:
| Package | Downloads |
|---|---|
|
TianWen.Lib
Astronomical imaging and device-control library for .NET: cameras, mounts, focusers, filter wheels, cover/calibrators and guiders over ASCOM, Alpaca, ZWO, QHYCCD, Meade LX200, Skywatcher, OnStep and PHD2, plus plate solving, deep-sky and planetary stacking, auto-focus and unattended session automation. First-class multi-OTA (dual rig) support. AOT compatible. |
|
|
Node.Lib.Hosting
Node.Lib's node side: Kestrel on the Unix domain socket its NodeLock admits it to, owner-only on Unix. Apart from Node.Lib so a client never carries ASP.NET Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.