Skip to content

Latest commit

 

History

History

Samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Samples

Included here are two full-featured samples that demonstrate various aspects of state machine usage. These samples are built against the public Nuget packages for the DurableStateMachine project.

Interactive Debugger

InteractiveDebugger.sln

This sample demonstrates a simple web interface for submitting state machine execution requests as JSON. It also demonstrates the ability to listen for observability events during state machine execution, using a SignalR client. The web app pauses execution to display state machine progress, and allows the user to resume execution at the click of a button.

This sample includes a number of state machine definitions as starters; you can execute those directly or modify them in-browser as you wish.

Strongly Typed Client

StronglyTypedClient.sln

This sample demonstrates the use of IDurableClient to submit state machine jobs, check status, etc. using purpose-built extension methods. IDurableClient invocations are submitted by name, and mapped to existing definitions already registered on the Durable Functions application.

It also demonstrates handling optional observability events using SignalR in a C# console client.