ServerlessWorkflow.Sdk.Runtime
1.0.2
Prefix Reserved
dotnet add package ServerlessWorkflow.Sdk.Runtime --version 1.0.2
NuGet\Install-Package ServerlessWorkflow.Sdk.Runtime -Version 1.0.2
<PackageReference Include="ServerlessWorkflow.Sdk.Runtime" Version="1.0.2" />
<PackageVersion Include="ServerlessWorkflow.Sdk.Runtime" Version="1.0.2" />
<PackageReference Include="ServerlessWorkflow.Sdk.Runtime" />
paket add ServerlessWorkflow.Sdk.Runtime --version 1.0.2
#r "nuget: ServerlessWorkflow.Sdk.Runtime, 1.0.2"
#:package ServerlessWorkflow.Sdk.Runtime@1.0.2
#addin nuget:?package=ServerlessWorkflow.Sdk.Runtime&version=1.0.2
#tool nuget:?package=ServerlessWorkflow.Sdk.Runtime&version=1.0.2
ServerlessWorkflow.Sdk.Runtime
A .NET runtime for executing Serverless Workflow DSL definitions.
This package ships the services required to load, schedule, and execute workflow definitions, including task executors, expression evaluation (JQ and JavaScript via Jint), authentication, secret management, schema validation (JSON Schema, Avro, XML), and CloudEvents integration.
Installation
dotnet add package ServerlessWorkflow.Sdk.Runtime
Usage
Register the runtime with Microsoft.Extensions.DependencyInjection:
using ServerlessWorkflow.Sdk.Runtime;
var builder = Host.CreateApplicationBuilder(args);
builder.Services.AddServerlessWorkflowRuntime(builder.Configuration);
Then resolve and use IWorkflowRuntime to run a workflow:
var runtime = host.Services.GetRequiredService<IWorkflowRuntime>();
var process = await runtime.RunAsync(definition, input, executionOptions: null, cancellationToken);
await process.WaitAsync(cancellationToken);
You can also run a workflow by reference:
var process = await runtime.RunAsync(
@namespace: "samples",
name: "fake-workflow",
version: "0.1.0",
input: input,
executionOptions: null,
cancellationToken);
Key services
| Service | Role |
|---|---|
IWorkflowRuntime |
Entry point for running workflows. |
IWorkflowDefinitionStore |
Persists and retrieves workflow definitions. |
IWorkflowStateStore |
Persists workflow execution state. |
IWorkflowProcessFactory |
Creates IWorkflowProcess instances for execution. |
ITaskExecutor / TaskExecutorFactory |
Execute individual DSL tasks. |
RuntimeExpressionEvaluator |
Evaluates runtime expressions (JQ / JavaScript). |
AuthenticationHandler / OAuth2TokenManager |
Handles workflow authentication. |
SecretsManager |
Resolves secret references at runtime. |
ICloudEventBus |
Publishes and subscribes to CloudEvents. |
Related packages
- ServerlessWorkflow.Sdk — core DSL models
- ServerlessWorkflow.Sdk.Builders — fluent builders
- ServerlessWorkflow.Sdk.Runtime.Cli —
swfcommand-line runner - Project root
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Apache.Avro (>= 1.12.1)
- Duende.IdentityModel (>= 8.1.0)
- DynamicGrpc (>= 1.4.0)
- Google.Protobuf (>= 3.34.1)
- Grpc.Net.Client (>= 2.76.0)
- Jint (>= 4.7.1)
- Microsoft.Extensions.Caching.Memory (>= 10.0.5)
- Microsoft.Extensions.Hosting.Abstractions (>= 10.0.5)
- Microsoft.Extensions.Http (>= 10.0.5)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.17.0)
- Microsoft.IdentityModel.Tokens (>= 8.17.0)
- Microsoft.OpenApi.Readers (>= 1.6.28)
- Neuroglia.AsyncApi.Client (>= 3.0.6)
- Neuroglia.AsyncApi.IO (>= 3.0.6)
- ServerlessWorkflow.Sdk.Runtime.Abstractions (>= 1.0.2)
- System.Linq.Async (>= 6.0.1)
- YamlDotNet (>= 16.3.0)
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 |
|---|---|---|
| 1.0.2 | 92 | 4/15/2026 |