Skip to content

Commit

Permalink
Downgrade to net6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jmigueprieto committed Dec 4, 2024
1 parent ac3bf26 commit c152d22
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/conductor-csharp.test.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
Expand Down
12 changes: 10 additions & 2 deletions csharp-examples/TestWorker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion csharp-examples/csharp-examples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<RootNamespace>csharp_examples</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit c152d22

Please sign in to comment.