From 2d2995e1585dd1432c94e8fcbc7bafda4b4c3c46 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ognjen=20Kati=C4=87?=
<44910579+ognjenkatic@users.noreply.github.com>
Date: Mon, 12 Sep 2022 12:05:27 +0200
Subject: [PATCH 1/2] check ifaces
---
src/ConductorSharp.Engine/ExecutionManager.cs | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/ConductorSharp.Engine/ExecutionManager.cs b/src/ConductorSharp.Engine/ExecutionManager.cs
index fbdf2128..82fd77dc 100644
--- a/src/ConductorSharp.Engine/ExecutionManager.cs
+++ b/src/ConductorSharp.Engine/ExecutionManager.cs
@@ -68,7 +68,10 @@ public async Task StartAsync(CancellationToken cancellationToken)
private Type GetInputType(Type workerType)
{
- var interfaces = workerType.GetInterfaces().Where(a => a.GetGenericTypeDefinition() == typeof(ITaskRequestHandler<,>)).First();
+ var interfaces = workerType
+ .GetInterfaces()
+ .Where(a => a.IsGenericType && a.GetGenericTypeDefinition() == typeof(ITaskRequestHandler<,>))
+ .First();
var genericArguments = interfaces.GetGenericArguments();
var inputType = genericArguments[0];
From dc4738dac7aae7c091efc42887bfd7f3c0ee88ce Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ognjen=20Kati=C4=87?=
<44910579+ognjenkatic@users.noreply.github.com>
Date: Mon, 12 Sep 2022 12:06:36 +0200
Subject: [PATCH 2/2] bump version
---
src/ConductorSharp.Client/ConductorSharp.Client.csproj | 2 +-
src/ConductorSharp.Engine/ConductorSharp.Engine.csproj | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/ConductorSharp.Client/ConductorSharp.Client.csproj b/src/ConductorSharp.Client/ConductorSharp.Client.csproj
index d0cc5bb1..f7ed0308 100644
--- a/src/ConductorSharp.Client/ConductorSharp.Client.csproj
+++ b/src/ConductorSharp.Client/ConductorSharp.Client.csproj
@@ -6,7 +6,7 @@
Codaxy
Codaxy
ConductorSharp.Client
- 1.5.0-alpha1
+ 1.5.0-alpha2
Client library for Netflix Conductor, with some additional quality of life features.
https://github.com/codaxy/conductor-sharp
netflix;conductor
diff --git a/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj b/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj
index 5007821f..9bdb3197 100644
--- a/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj
+++ b/src/ConductorSharp.Engine/ConductorSharp.Engine.csproj
@@ -6,7 +6,7 @@
Codaxy
Codaxy
ConductorSharp.Engine
- 1.5.0-alpha1
+ 1.5.0-alpha2
Client library for Netflix Conductor, with some additional quality of life features.
https://github.com/codaxy/conductor-sharp
netflix;conductor