Table of Contents

Scenarios

Complete programs for jobs that come up again and again. Each scenario explains the approach, shows the code (compiled with the library in CI), and lists what to change for production. Copy them as a starting point.

Scenario What it shows
A deployment script Upload a release with resume, unpack it, switch a symlink atomically, restart, health-check through the connection, roll back.
A fleet health check Check many hosts in parallel, each with its own connection and time limit, and report every host.
A file sync job Mirror a local directory to a server: only changed files, atomic replacement, safe to rerun after a failure.
A database through a jump host Reach a database inside a private network through a bastion, from any ADO.NET provider.
A webhook receiver behind NAT Serve webhooks that reach a public server's port from your own code, over an outbound SSH connection, with no local port.
A background worker A hosted service that fetches files on a schedule over a shared, reconnecting connection.
Short-lived certificates for CI jobs Be the SSH certificate authority: issue each CI job a certificate for one user, for twenty minutes, from a CA key in a KMS or agent.
A KMS-held key forwarded through a bastion Forward an agent served in-process from a KMS key, and let the bastion use it only to log in to known servers.

The samples are runnable projects: an ssh-like command-line tool, an ASP.NET Core API, and a worker service.