From NuGet
STX.Sdk.
Package page: nuget.org/packages/STX.Sdk.
Supported runtime
| Target framework | net8.0 |
| Minimum .NET SDK | 8.0 |
| Platforms | Windows, macOS, Linux (any platform with .NET 8) |
net7.0. New projects should start on 8.
Dependencies
STX.Sdk pulls in a small set of battle-tested packages:
| Package | Purpose |
|---|---|
GraphQL.Client + GraphQL.Client.Serializer.Newtonsoft | Typed GraphQL transport |
Microsoft.Extensions.Hosting.Abstractions | DI + BackgroundService base classes |
Microsoft.Extensions.Http | HttpClient factory |
Microsoft.Extensions.Logging.Abstractions | ILogger<T> |
Microsoft.IdentityModel.Tokens, System.IdentityModel.Tokens.Jwt | JWT parsing |
Polly | Retry + transient-fault handling for GraphQL calls |
STX.Sdk.
Using the SDK without Microsoft.Extensions.Hosting
The canonical pattern uses Host.CreateDefaultBuilder(...) because that bootstraps the DI container and runs background services (session keep-alive, geolocation). For small scripts you can roll your own ServiceCollection:
STXSessionBackgroundService, STXGeoLocationBackgroundService) won’t start automatically. Start them explicitly if you need them, or pass keepSessionAlive: true to LoginAsync only when running under a proper IHost.
Versioning
STX.Sdk follows semantic versioning. Breaking changes bump the major version; new services/methods bump the minor; bug fixes bump the patch. The package is tag-driven from the cssdk repo and auto-published to NuGet on release.
