diff --git a/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs b/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs index 5922ef6e961..1a3154ac06c 100644 --- a/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs +++ b/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs @@ -35,7 +35,7 @@ public DIActorProducer(IDependencyResolver dependencyResolver, /// public Type ActorType { - get { return this.actorType.GetType(); } + get { return this.actorType; } } /// /// Creates an instance of the Actor based on the Type specified in the constructor parameter actorName