Soenneker.Railway.GraphQlClientUtil
11.0.40
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Railway.GraphQlClientUtil --version 11.0.40
NuGet\Install-Package Soenneker.Railway.GraphQlClientUtil -Version 11.0.40
<PackageReference Include="Soenneker.Railway.GraphQlClientUtil" Version="11.0.40" />
<PackageVersion Include="Soenneker.Railway.GraphQlClientUtil" Version="11.0.40" />
<PackageReference Include="Soenneker.Railway.GraphQlClientUtil" />
paket add Soenneker.Railway.GraphQlClientUtil --version 11.0.40
#r "nuget: Soenneker.Railway.GraphQlClientUtil, 11.0.40"
#:package Soenneker.Railway.GraphQlClientUtil@11.0.40
#addin nuget:?package=Soenneker.Railway.GraphQlClientUtil&version=11.0.40
#tool nuget:?package=Soenneker.Railway.GraphQlClientUtil&version=11.0.40
Soenneker.Railway.GraphQlClientUtil
A cached, typed Railway GraphQL client for .NET 10 dependency injection.
using Soenneker.Railway.GraphQlClient;
using Soenneker.Railway.GraphQlClientUtil.Abstract;
using Soenneker.Railway.GraphQlClientUtil.Registrars;
services.AddRailwayGraphQlClientUtilAsSingleton();
// IConfiguration must contain Railway:ApiKey (environment variable Railway__ApiKey).
var utility = serviceProvider.GetRequiredService<IRailwayGraphQlClientUtil>();
var client = await utility.Get(cancellationToken);
var response = await client.GetProject.Execute(new GetProjectVariables { Id = projectId }, cancellationToken);
The registrar also registers IRailwayGraphQlHttpClient. It uses the HTTP client's Railway authentication and endpoint configuration, without adding a second authentication layer. Singleton and scoped utility registrations are available; HTTP clients are cached by the singleton HTTP service. Disposing the utility releases its cached client wrapper; the HTTP service owns its transport lifetime.
For local development, keep the soenneker.railway.graphqlclient and soenneker.railway.httpclients checkouts beside this repository. The project uses sibling project references when available and version 4.0.0 package references otherwise. Publish those two dependencies before building this repository standalone against NuGet.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Railway.GraphQlClient (>= 11.0.43)
- Soenneker.Railway.HttpClients (>= 11.0.35)
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 |
|---|---|---|
| 11.0.63 | 0 | 11/20/2026 |
| 11.0.59 | 53 | 11/18/2026 |
| 11.0.56 | 52 | 11/18/2026 |
| 11.0.55 | 60 | 11/17/2026 |
| 11.0.54 | 70 | 11/15/2026 |
| 11.0.53 | 71 | 11/15/2026 |
| 11.0.52 | 70 | 11/14/2026 |
| 11.0.51 | 74 | 11/13/2026 |
| 11.0.50 | 92 | 11/13/2026 |
| 11.0.48 | 94 | 11/11/2026 |
| 11.0.47 | 85 | 11/11/2026 |
| 11.0.46 | 95 | 11/11/2026 |
| 11.0.45 | 89 | 11/11/2026 |
| 11.0.44 | 90 | 11/11/2026 |
| 11.0.42 | 90 | 11/10/2026 |
| 11.0.41 | 91 | 11/7/2026 |
| 11.0.40 | 98 | 11/7/2026 |
| 11.0.39 | 90 | 11/6/2026 |
| 11.0.38 | 91 | 11/4/2026 |
| 11.0.37 | 90 | 11/3/2026 |
Update dependency Soenneker.Railway.GraphQlClient to 11.0.43 (#31)