We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9cf0d0 commit a587fbbCopy full SHA for a587fbb
src/Cofoundry.Plugins.BackgroundTasks.Hangfire/Framework/ContainerJobActivator.cs
@@ -30,7 +30,10 @@ public override object ActivateJob(Type type)
30
31
// Bit of a hack here to wrap injectable tasks because
32
// hangire doesn't support child contexts.
33
- if (type.IsGenericType && type.GetGenericTypeDefinition() == typeof(InjectableTaskWrapper<>))
+ if (type.IsGenericType
34
+ && (type.GetGenericTypeDefinition() == typeof(InjectableTaskWrapper<>)
35
+ || type.GetGenericTypeDefinition() == typeof(InjectableAsyncTaskWrapper<>))
36
+ )
37
{
38
job = Activator.CreateInstance(type, _resolutionContext);
39
}
0 commit comments