Soenneker.Fastly.OpenApiClientUtil
11.0.288
Prefix Reserved
dotnet add package Soenneker.Fastly.OpenApiClientUtil --version 11.0.288
NuGet\Install-Package Soenneker.Fastly.OpenApiClientUtil -Version 11.0.288
<PackageReference Include="Soenneker.Fastly.OpenApiClientUtil" Version="11.0.288" />
<PackageVersion Include="Soenneker.Fastly.OpenApiClientUtil" Version="11.0.288" />
<PackageReference Include="Soenneker.Fastly.OpenApiClientUtil" />
paket add Soenneker.Fastly.OpenApiClientUtil --version 11.0.288
#r "nuget: Soenneker.Fastly.OpenApiClientUtil, 11.0.288"
#:package Soenneker.Fastly.OpenApiClientUtil@11.0.288
#addin nuget:?package=Soenneker.Fastly.OpenApiClientUtil&version=11.0.288
#tool nuget:?package=Soenneker.Fastly.OpenApiClientUtil&version=11.0.288
Soenneker.Fastly.OpenApiClientUtil
Provides lazy, cached access to the generated Fastly API client.
Installation
dotnet add package Soenneker.Fastly.OpenApiClientUtil
Configure and register
{
"Fastly": {
"ApiKey": "your-api-token"
}
}
using Soenneker.Fastly.OpenApiClientUtil.Registrars;
services.AddFastlyOpenApiClientUtilAsScoped();
Use the client
using Soenneker.Fastly.OpenApiClientUtil.Abstract;
public sealed class CurrentUserReader(IFastlyOpenApiClientUtil clients)
{
public async Task Read(CancellationToken cancellationToken)
{
var client = await clients.Get(cancellationToken);
var currentUser = await client.Current_user.GetAsync(
cancellationToken: cancellationToken);
}
}
The first call to Get() creates the generated client; later calls on the same utility instance return it from the cache. The HTTP provider applies the Fastly-Key header, so the generated client does not add a second authentication header.
Use AddFastlyOpenApiClientUtilAsSingleton() when the application should share one generated client. A scoped utility borrows the singleton HTTP provider; disposing the scope releases the utility without destroying the shared transport.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Soenneker.Fastly.HttpClients (>= 11.0.201)
- Soenneker.Fastly.OpenApiClient (>= 11.0.125)
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.288 | 44 | 12/5/2026 |
| 11.0.287 | 53 | 12/3/2026 |
| 11.0.286 | 56 | 12/3/2026 |
| 11.0.285 | 54 | 12/3/2026 |
| 11.0.284 | 53 | 12/3/2026 |
| 11.0.283 | 55 | 12/3/2026 |
| 11.0.282 | 51 | 12/2/2026 |
| 11.0.281 | 53 | 12/2/2026 |
| 11.0.280 | 53 | 12/2/2026 |
| 11.0.278 | 75 | 12/2/2026 |
| 11.0.277 | 78 | 12/2/2026 |
| 11.0.276 | 89 | 12/2/2026 |
| 11.0.275 | 79 | 12/1/2026 |
| 11.0.274 | 85 | 12/1/2026 |
| 11.0.273 | 83 | 12/1/2026 |
| 11.0.272 | 85 | 12/1/2026 |
| 11.0.271 | 89 | 12/1/2026 |
| 11.0.270 | 88 | 12/1/2026 |
| 11.0.269 | 91 | 11/30/2026 |
| 11.0.268 | 95 | 11/30/2026 |
Update dependency Soenneker.Fastly.OpenApiClient to 11.0.125 (#401)