Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

.NET SDK for Serverless Workflow

License

NotificationsYou must be signed in to change notification settings

serverlessworkflow/sdk-net

The official .NET SDK for theServerless 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:

vardefinition=newWorkflowDefinitionBuilder().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:

usingvarinputStream=File.OpenRead("workflow.yaml");varreader=WorkflowDefinitionReader.Create();varworkflow=awaitreader.ReadAsync(inputStream);usingvaroutputStream=File.Create("workflow.yaml");varwriter=WorkflowDefinitionWriter.Create();awaitwriter.WriteAsync(workflow,stream,WorkflowDefinitionFormat.Yaml);

About

.NET SDK for Serverless Workflow

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors8

Languages


[8]ページ先頭

©2009-2025 Movatter.jp