Skip to content

Commit 18304ee

Browse files
authored
Update README.md
1 parent 45da3d8 commit 18304ee

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ With the SDK, you can:
2323
dotnet nuget add package ServerlessWorkflow.Sdk
2424
```
2525

26+
```csharp
27+
services.AddServerlessWorkflow();
28+
```
29+
2630
### How to use
2731

2832
#### Building workflows programatically
@@ -78,3 +82,10 @@ using(Stream stream = File.OpenRead("myWorkflow.json"))
7882
}
7983
}
8084
```
85+
86+
#### Validating workflows
87+
88+
```csharp
89+
var validator = serviceProvider.GetRequiredService<IValidator<WorkflowDefinition>>();
90+
var validationResult = validator.Validate(myWorkflow);
91+
```

0 commit comments

Comments
 (0)