diff --git a/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs b/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs
index 7423e4146ce..36072d4a6f4 100644
--- a/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs
+++ b/src/contrib/dependencyInjection/Akka.DI.Core/DIActorProducer.cs
@@ -6,7 +6,7 @@ namespace Akka.DI.Core
///
/// Dependency Injection Backed IndirectActorProducer
///
- public class DIActorProducer : IndirectActorProducer
+ public class DIActorProducer : IIndirectActorProducer
{
private IDependencyResolver dependencyResolver;
private string actorName;
diff --git a/src/core/Akka.Tests/Actor/PropsSpec.cs b/src/core/Akka.Tests/Actor/PropsSpec.cs
index ca5e68a5c48..e3043a8a3ce 100644
--- a/src/core/Akka.Tests/Actor/PropsSpec.cs
+++ b/src/core/Akka.Tests/Actor/PropsSpec.cs
@@ -33,7 +33,7 @@ public void Props_must_create_actor_by_producer()
latchActor.Ready(TimeSpan.FromSeconds(1));
}
- private class TestProducer : IndirectActorProducer
+ private class TestProducer : IIndirectActorProducer
{
TestLatch latchActor;
diff --git a/src/core/Akka/Actor/Props.cs b/src/core/Akka/Actor/Props.cs
index 831a8b98f0a..ff63c81c751 100644
--- a/src/core/Akka/Actor/Props.cs
+++ b/src/core/Akka/Actor/Props.cs
@@ -135,7 +135,7 @@ public override int GetHashCode()
///
/// The default producer
///
- private static readonly IndirectActorProducer defaultProducer = new DefaultProducer();
+ private static readonly IIndirectActorProducer defaultProducer = new DefaultProducer();
///
/// The intern type of the actor or the producer
@@ -150,7 +150,7 @@ public override int GetHashCode()
///
/// The producer of the actor
///
- private IndirectActorProducer producer;
+ private IIndirectActorProducer producer;
///
/// Initializes a new instance of the class.
@@ -361,7 +361,7 @@ public static Props Create(params object[] args) where TActor : ActorBas
/// The type of the actor producer
/// The arguments
/// Props
- public static Props CreateBy(params object[] args) where TProducer : class, IndirectActorProducer
+ public static Props CreateBy(params object[] args) where TProducer : class, IIndirectActorProducer
{
return new Props(typeof(TProducer), args);
}
@@ -512,7 +512,7 @@ protected override void OnReceive(object message)
}
}
- private class DefaultProducer : IndirectActorProducer
+ private class DefaultProducer : IIndirectActorProducer
{
public ActorBase Produce()
{
@@ -525,7 +525,7 @@ public Type ActorType
}
}
- private class ActivatorProducer : IndirectActorProducer
+ private class ActivatorProducer : IIndirectActorProducer
{
private readonly Type _actorType;
private readonly object[] _args;
@@ -547,7 +547,7 @@ public Type ActorType
}
}
- private class FactoryConsumer : IndirectActorProducer where TActor : ActorBase
+ private class FactoryConsumer : IIndirectActorProducer where TActor : ActorBase
{
private readonly Func _factory;
@@ -569,13 +569,13 @@ public Type ActorType
#endregion
- private static IndirectActorProducer CreateProducer(Type type, object[] args)
+ private static IIndirectActorProducer CreateProducer(Type type, object[] args)
{
if (type == null) {
return defaultProducer;
}
- if (typeof(IndirectActorProducer).IsAssignableFrom(type)) {
- return Activator.CreateInstance(type, args).AsInstanceOf();
+ if (typeof(IIndirectActorProducer).IsAssignableFrom(type)) {
+ return Activator.CreateInstance(type, args).AsInstanceOf();
}
if (typeof(ActorBase).IsAssignableFrom(type)) {
return new ActivatorProducer(type, args);
@@ -657,7 +657,7 @@ protected override Props Copy()
/// subclass. It can be used to allow a dependency injection framework to
/// determine the actual actor class and how it shall be instantiated.
///
- public interface IndirectActorProducer
+ public interface IIndirectActorProducer
{
///
/// This factory method must produce a fresh actor instance upon each
diff --git a/src/core/Akka/Util/Resolver.cs b/src/core/Akka/Util/Resolver.cs
index 87644585d3c..b06dbcc5166 100644
--- a/src/core/Akka/Util/Resolver.cs
+++ b/src/core/Akka/Util/Resolver.cs
@@ -8,7 +8,7 @@ public interface IResolver
T Resolve(object[] args);
}
- public abstract class Resolve : IndirectActorProducer
+ public abstract class Resolve : IIndirectActorProducer
{
public abstract ActorBase Produce();
public abstract Type ActorType { get; }