From c152d22469048169d7a643ea4ff1424284a68f59 Mon Sep 17 00:00:00 2001 From: Miguel Prieto Date: Wed, 4 Dec 2024 11:49:24 -0300 Subject: [PATCH] Downgrade to net6.0 --- Tests/conductor-csharp.test.csproj | 2 +- csharp-examples/TestWorker.cs | 12 ++++++++++-- csharp-examples/csharp-examples.csproj | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Tests/conductor-csharp.test.csproj b/Tests/conductor-csharp.test.csproj index cfabaf4..f6af481 100644 --- a/Tests/conductor-csharp.test.csproj +++ b/Tests/conductor-csharp.test.csproj @@ -1,6 +1,6 @@ - net8.0 + net6.0 diff --git a/csharp-examples/TestWorker.cs b/csharp-examples/TestWorker.cs index 2fc6b4b..39aa281 100644 --- a/csharp-examples/TestWorker.cs +++ b/csharp-examples/TestWorker.cs @@ -18,11 +18,19 @@ namespace csharp.examples; -public class TestWorker(string taskType) : IWorkflowTask +public class TestWorker : IWorkflowTask { + private readonly Random rnd = new(); - public string TaskType { get; } = taskType; + private readonly string _taskType; + + public TestWorker(string taskType) + { + _taskType = taskType; + } + + public string TaskType => _taskType; public WorkflowTaskExecutorConfiguration WorkerSettings { get; } = new WorkflowTaskExecutorConfiguration() { BatchSize = 20 diff --git a/csharp-examples/csharp-examples.csproj b/csharp-examples/csharp-examples.csproj index 00b0aee..4a5dd21 100644 --- a/csharp-examples/csharp-examples.csproj +++ b/csharp-examples/csharp-examples.csproj @@ -2,7 +2,7 @@ Exe - net8.0 + net6.0 csharp_examples enable enable