From e9e109655769d2a89a3dbf38a39e49723afc811a Mon Sep 17 00:00:00 2001 From: devbased Date: Wed, 1 Nov 2023 06:09:20 +0200 Subject: [PATCH] Implement Workflow Mutex Sample --- Directory.Build.props | 6 +- README.md | 1 + TemporalioSamples.sln | 7 + src/Mutex/Activities.cs | 38 +++++ src/Mutex/Impl/ILockHandle.cs | 10 ++ src/Mutex/Impl/ILockHandler.cs | 8 ++ src/Mutex/Impl/LockRequest.cs | 3 + src/Mutex/Impl/MutexActivities.cs | 37 +++++ src/Mutex/Impl/MutexWorkflow.workflow.cs | 60 ++++++++ .../Impl/TemporalWorkerOptionsExtensions.cs | 18 +++ src/Mutex/Impl/WorkflowMutex.cs | 133 ++++++++++++++++++ src/Mutex/Program.cs | 75 ++++++++++ src/Mutex/README.md | 37 +++++ src/Mutex/TemporalioSamples.Mutex.csproj | 1 + src/Mutex/WorkflowWithMutex.workflow.cs | 43 ++++++ 15 files changed, 474 insertions(+), 3 deletions(-) create mode 100644 src/Mutex/Activities.cs create mode 100644 src/Mutex/Impl/ILockHandle.cs create mode 100644 src/Mutex/Impl/ILockHandler.cs create mode 100644 src/Mutex/Impl/LockRequest.cs create mode 100644 src/Mutex/Impl/MutexActivities.cs create mode 100644 src/Mutex/Impl/MutexWorkflow.workflow.cs create mode 100644 src/Mutex/Impl/TemporalWorkerOptionsExtensions.cs create mode 100644 src/Mutex/Impl/WorkflowMutex.cs create mode 100644 src/Mutex/Program.cs create mode 100644 src/Mutex/README.md create mode 100644 src/Mutex/TemporalioSamples.Mutex.csproj create mode 100644 src/Mutex/WorkflowWithMutex.workflow.cs diff --git a/Directory.Build.props b/Directory.Build.props index 83111ee..b2bb624 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -19,9 +19,9 @@ - - - + + +