Skip to content

Demonstrates how to use interceptors in Temporal to count the number of workflows, child workflows, activities, signals and queries

Notifications You must be signed in to change notification settings

temporal-sa/temporal-dotnet-counter-interceptor

Repository files navigation

dotnet-counter-interceptor

The sample demonstrates:

  • the use of a simple Worker Workflow Interceptor that counts the number of Workflow Executions, Child Workflow Executions, and Activity Executions as well as the number of Signals and Queries. It is based off of the Java Sample located here

Start local Temporal Server

# run only once
temporal server start-dev

Run Worker Locally

# make sure you have temporal server running (see section above)
dotnet run

Run Worker using Temporal Cloud

# set up environment variables
export TEMPORAL_NAMESPACE=<namespace>.<accountId>
export TEMPORAL_ADDRESS=<namespace>.<accountId>.tmprl.cloud:7233
export TEMPORAL_TLS_CERT=/path/to/cert
export TEMPORAL_TLS_KEY=/path/to/key
# run the worker
dotnet run

About

Demonstrates how to use interceptors in Temporal to count the number of workflows, child workflows, activities, signals and queries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages