- Notifications
You must be signed in to change notification settings - Fork16
.NET SDK for Serverless Workflow
License
NotificationsYou must be signed in to change notification settings
serverlessworkflow/sdk-net
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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
Core:
dotnet add package ServerlessWorkflow.Sdk
Builders:
dotnet add package ServerlessWorkflow.Sdk.Builders
IO:
dotnet add package ServerlessWorkflow.Sdk.IO
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
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors8
Uh oh!
There was an error while loading.Please reload this page.