ServerlessWorkflow.Sdk.Builders
1.0.0-alpha5.4
Prefix Reserved
This is a prerelease version of ServerlessWorkflow.Sdk.Builders.
dotnet add package ServerlessWorkflow.Sdk.Builders --version 1.0.0-alpha5.4
NuGet\Install-Package ServerlessWorkflow.Sdk.Builders -Version 1.0.0-alpha5.4
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="ServerlessWorkflow.Sdk.Builders" Version="1.0.0-alpha5.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ServerlessWorkflow.Sdk.Builders --version 1.0.0-alpha5.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ServerlessWorkflow.Sdk.Builders, 1.0.0-alpha5.4"
#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.
// Install ServerlessWorkflow.Sdk.Builders as a Cake Addin #addin nuget:?package=ServerlessWorkflow.Sdk.Builders&version=1.0.0-alpha5.4&prerelease // Install ServerlessWorkflow.Sdk.Builders as a Cake Tool #tool nuget:?package=ServerlessWorkflow.Sdk.Builders&version=1.0.0-alpha5.4&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Serverless Workflow .NET SDK
The official .NET SDK for the Serverless Workflow DSL.
The SDK is composed of three Nuget packages:
- Core, which contains the models of the Serverless Workflow DSL
- Builders, which contains service used to build workflow definitions programmatically
- IO, which contains the services used to read and write workflow definitions
Installation
Core:
dotnet add package ServerlessWorkflow.Sdk
Builders:
dotnet add package ServerlessWorkflow.Sdk.Builders
IO:
dotnet add package ServerlessWorkflow.Sdk.IO
Example usage
Building a workflow definition programmatically:
var definition = new WorkflowDefinitionBuilder()
.WithName("fake-workflow")
.WithVersion("0.1.0:fake")
.Do("todo-1", task => task
.Call("http")
.With("method", "get")
.With("uri", "https://fake-api.com"))
.Build();
Reading and writing a workflow definition:
using var inputStream = File.OpenRead("workflow.yaml");
var reader = WorkflowDefinitionReader.Create();
var workflow = await reader.ReadAsync(inputStream);
using var outputStream = File.Create("workflow.yaml");
var writer = WorkflowDefinitionWriter.Create();
await writer.WriteAsync(workflow, stream, WorkflowDefinitionFormat.Yaml);
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- ServerlessWorkflow.Sdk (>= 1.0.0-alpha5.4)
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.0-alpha5.4 | 37 | 12/19/2024 |
1.0.0-alpha5.3 | 36 | 12/19/2024 |
1.0.0-alpha5.2 | 145 | 11/20/2024 |
1.0.0-alpha5.1 | 333 | 10/25/2024 |
1.0.0-alpha5 | 113 | 10/22/2024 |
1.0.0-alpha4.1 | 55 | 10/22/2024 |
1.0.0-alpha4 | 106 | 10/18/2024 |
1.0.0-alpha3.1 | 70 | 10/18/2024 |
1.0.0-alpha3 | 214 | 10/11/2024 |
1.0.0-alpha2.16 | 135 | 10/1/2024 |
1.0.0-alpha2.15 | 336 | 9/8/2024 |
1.0.0-alpha2.14 | 76 | 9/6/2024 |
1.0.0-alpha2.13 | 56 | 9/6/2024 |
1.0.0-alpha2.12 | 142 | 8/30/2024 |
1.0.0-alpha2.11 | 127 | 8/21/2024 |
1.0.0-alpha2.10 | 76 | 8/21/2024 |
1.0.0-alpha2.9 | 75 | 8/21/2024 |
1.0.0-alpha2.8 | 117 | 8/9/2024 |
1.0.0-alpha2.7 | 72 | 8/8/2024 |
1.0.0-alpha2.6 | 65 | 6/28/2024 |
1.0.0-alpha2.5 | 106 | 6/26/2024 |
1.0.0-alpha2.4 | 56 | 6/26/2024 |
1.0.0-alpha2.3 | 56 | 6/26/2024 |
1.0.0-alpha2.2 | 57 | 6/25/2024 |
1.0.0-alpha2.1 | 81 | 6/21/2024 |
1.0.0-alpha2 | 64 | 6/19/2024 |
1.0.0-alpha1 | 159 | 5/22/2024 |