From 175feb54ccb40620d5cb1ecd93a33aa52e10b205 Mon Sep 17 00:00:00 2001 From: Chad Retz Date: Mon, 12 Aug 2024 10:20:24 -0500 Subject: [PATCH] Safe message handler sample (#73) --- .editorconfig | 1 + Directory.Build.props | 8 +- README.md | 1 + TemporalioSamples.sln | 7 + .../ClusterManagerActivities.cs | 44 ++++ .../ClusterManagerWorkflow.workflow.cs | 209 ++++++++++++++++++ src/SafeMessageHandlers/Program.cs | 101 +++++++++ src/SafeMessageHandlers/README.md | 17 ++ ...mporalioSamples.SafeMessageHandlers.csproj | 7 + .../SayHelloWorkflowTests.cs | 27 ++- .../ClusterManagerWorkflowTests.cs | 65 ++++++ tests/TemporalioSamples.Tests.csproj | 1 + tests/WorkflowEnvironment.cs | 36 +++ tests/WorkflowEnvironmentCollection.cs | 10 + tests/WorkflowEnvironmentTestBase.cs | 23 ++ 15 files changed, 541 insertions(+), 16 deletions(-) create mode 100644 src/SafeMessageHandlers/ClusterManagerActivities.cs create mode 100644 src/SafeMessageHandlers/ClusterManagerWorkflow.workflow.cs create mode 100644 src/SafeMessageHandlers/Program.cs create mode 100644 src/SafeMessageHandlers/README.md create mode 100644 src/SafeMessageHandlers/TemporalioSamples.SafeMessageHandlers.csproj create mode 100644 tests/SafeMessageHandlers/ClusterManagerWorkflowTests.cs create mode 100644 tests/WorkflowEnvironment.cs create mode 100644 tests/WorkflowEnvironmentCollection.cs create mode 100644 tests/WorkflowEnvironmentTestBase.cs diff --git a/.editorconfig b/.editorconfig index 3182e29..d80c50e 100644 --- a/.editorconfig +++ b/.editorconfig @@ -96,6 +96,7 @@ dotnet_diagnostic.SA1515.severity = none # Do not require XML doc in samples dotnet_diagnostic.SA1600.severity = none +dotnet_diagnostic.SA1602.severity = none # Do not require file header dotnet_diagnostic.SA1633.severity = none diff --git a/Directory.Build.props b/Directory.Build.props index 59f801a..b823259 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -19,10 +19,10 @@ - - - - + + + +