Skip to main content

Installation

Zeridion Flare ships an official SDK for seven languages, plus a plain REST API you can call from anything else. Pick your language below — the choice follows you across every tabbed page in these docs.

If you just want to see a job run, start with the Quick Start instead; this page is the deeper reference for install options, runtime support, and verifying a working setup.

Install the package

dotnet add package Zeridion.Flare

Package Manager Console:

Install-Package Zeridion.Flare

PackageReference:

<PackageReference Include="Zeridion.Flare" Version="0.2.3" />
tip

Replace 0.2.3 with the latest version from NuGet.

Runtime compatibility

The package multi-targets net10.0 and netstandard2.1, so it works across all modern .NET versions without conditional compilation on your side.

Target FrameworkSupported .NET VersionsNotes
net10.0.NET 10Full feature support, recommended
netstandard2.1.NET 6, 7, 8, 9Full feature support

Where it runs

Zeridion Flare works in any .NET project that uses Microsoft.Extensions.Hosting:

  • ASP.NET Core Web API / Minimal API — most common
  • ASP.NET Core MVC / Razor Pages
  • Worker Services (Host.CreateDefaultBuilder)
  • Console apps (with HostBuilder)
  • Blazor Server
note

Blazor WebAssembly is not supported because jobs execute server-side and require the hosting infrastructure.

Configuration

Your API key starts with zf_live_sk_ (production) or zf_test_sk_ (test). Every SDK reads FLARE_API_KEY from the environment when you do not pass a key explicitly.

Add your API key to appsettings.json:

{
"Zeridion": {
"ApiKey": "zf_live_sk_xxxxxxxxxxxxxxxxxxxx"
}
}

Then bind it in Program.cs:

builder.Services.AddZeridionFlare(options =>
{
options.ApiKey = builder.Configuration["Zeridion:ApiKey"]!;
});
Local development

For local development against the Flare API running in Docker, override ApiBaseUrl in appsettings.Development.json:

{
"Zeridion": {
"ApiKey": "zf_test_sk_local_development_key",
"ApiBaseUrl": "http://localhost:5100"
}
}

Verify installation

Listing jobs is read-only and safe to run against a live project — an empty list still proves the package resolved and the key is valid.

Run your application and look for the Flare worker startup log in the console output:

dotnet run

You should see log output indicating the worker has started and is polling for jobs. To check the connection directly, resolve IJobClient and list jobs:

var page = await jobs.ListAsync(new ListJobsOptions { Limit = 1 });
Console.WriteLine($"Connected — {page.Items.Count} job(s) returned.");
danger

If ApiKey is missing or empty, the app throws an ArgumentException at startup. This is by design — configuration errors are caught before your app accepts traffic.

An authentication failure surfaces as a typed error in every SDK (AuthError or its language equivalent). See Error handling for the full hierarchy.


Next → Configuration · Quick Start

See also