CloudFlows.Sdk 0.3.3

dotnet add package CloudFlows.Sdk --version 0.3.3
NuGet\Install-Package CloudFlows.Sdk -Version 0.3.3
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="CloudFlows.Sdk" Version="0.3.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CloudFlows.Sdk --version 0.3.3
#r "nuget: CloudFlows.Sdk, 0.3.3"
#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 CloudFlows.Sdk as a Cake Addin
#addin nuget:?package=CloudFlows.Sdk&version=0.3.3

// Install CloudFlows.Sdk as a Cake Tool
#tool nuget:?package=CloudFlows.Sdk&version=0.3.3

CloudFlows .NET SDK

The official .NET SDK for the CloudFlows DSL.

The SDK is composed of three Nuget packages:

  • Core, which contains the models of the CloudFlows 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 CloudFlows.Sdk

Builders:

dotnet add package CloudFlows.Sdk.Builders

IO:

dotnet add package CloudFlows.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 Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on CloudFlows.Sdk:

Package Downloads
CloudFlows.Sdk.Builders

Contains services used to build CloudFlows workflow definitions programatically

CloudFlows.Sdk.IO

Contains services used to read and write CloudFlows workflow definitions

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.3.3 48 5/17/2024
0.3.2 42 5/16/2024
0.3.1 37 5/16/2024
0.3.0 43 5/16/2024
0.2.1 73 5/13/2024
0.2.0 78 5/12/2024
0.1.2 81 5/11/2024
0.1.1 81 5/8/2024
0.1.0 89 5/7/2024
0.0.1 96 5/7/2024