Soenneker.Railway.GraphQlClientUtil 11.0.38

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Soenneker.Railway.GraphQlClientUtil --version 11.0.38
                    
NuGet\Install-Package Soenneker.Railway.GraphQlClientUtil -Version 11.0.38
                    
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="Soenneker.Railway.GraphQlClientUtil" Version="11.0.38" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Railway.GraphQlClientUtil" Version="11.0.38" />
                    
Directory.Packages.props
<PackageReference Include="Soenneker.Railway.GraphQlClientUtil" />
                    
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 Soenneker.Railway.GraphQlClientUtil --version 11.0.38
                    
#r "nuget: Soenneker.Railway.GraphQlClientUtil, 11.0.38"
                    
#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 Soenneker.Railway.GraphQlClientUtil@11.0.38
                    
#: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=Soenneker.Railway.GraphQlClientUtil&version=11.0.38
                    
Install as a Cake Addin
#tool nuget:?package=Soenneker.Railway.GraphQlClientUtil&version=11.0.38
                    
Install as a Cake Tool

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 Compatible and additional computed target framework versions.
.NET net11.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
Loading failed

Updated Multiple NuGet packages