Skip to content

Commit 564b754

Browse files
committed
Check if instance is interface, not its type
1 parent a7fef9d commit 564b754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IntegrationEngine/MessageQueue/RabbitMQListener.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void _listen()
7373
integrationJob = AutoWireJob(integrationJob, type);
7474
if (integrationJob != null)
7575
{
76-
if (integrationJob.GetType() is IParameterizedJob)
76+
if (integrationJob is IParameterizedJob)
7777
(integrationJob as IParameterizedJob).Parameters = message.Parameters;
7878
integrationJob.Run();
7979
}

0 commit comments

Comments
 (0)