Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Standalone Activity

This sample shows how to execute Activities directly from a Temporal Client, without a Workflow.

For full documentation, see Standalone Activities.

Sample directory structure

  • MyActivities.cs - Activity definition with [Activity] attribute
  • Program.cs - Worker, execute, start, list, and count commands

Steps to run this sample

To run, first see README.md for prerequisites. Then, run the following from this directory in a separate terminal to start the worker:

dotnet run worker

Then in another terminal, execute a standalone activity and wait for the result:

dotnet run execute-activity

Or start a standalone activity, get a handle, then wait for the result:

dotnet run start-activity

List standalone activity executions:

dotnet run list-activities

Count standalone activity executions:

dotnet run count-activities

Note: list-activities and count-activities are only available in the Standalone Activity prerelease CLI.