@@ -623,26 +623,6 @@ protected override void OnReceive(object message)
623623 }
624624 }
625625
626- private class DefaultProducer : IIndirectActorProducer
627- {
628- private DefaultProducer ( ) { }
629-
630- public static readonly DefaultProducer Instance = new ( ) ;
631-
632- public ActorBase Produce ( )
633- {
634- throw new InvalidOperationException ( "No actor producer specified!" ) ;
635- }
636-
637- public Type ActorType => typeof ( ActorBase ) ;
638-
639-
640- public void Release ( ActorBase actor )
641- {
642- actor = null ;
643- }
644- }
645-
646626 private class ActivatorProducer : IIndirectActorProducer
647627 {
648628 private readonly object [ ] _args ;
@@ -717,7 +697,7 @@ public override ActorBase NewActor()
717697 /// <typeparam name="TActor">The type of the actor to create.</typeparam>
718698 internal class DynamicProps < TActor > : Props where TActor : ActorBase
719699 {
720- private readonly Func < TActor > invoker ;
700+ private readonly Func < TActor > _invoker ;
721701
722702 /// <summary>
723703 /// Initializes a new instance of the <see cref="DynamicProps{TActor}" /> class.
@@ -726,7 +706,7 @@ internal class DynamicProps<TActor> : Props where TActor : ActorBase
726706 public DynamicProps ( Func < TActor > invoker )
727707 : base ( typeof ( TActor ) )
728708 {
729- this . invoker = invoker ;
709+ this . _invoker = invoker ;
730710 }
731711
732712 /// <summary>
@@ -735,15 +715,15 @@ public DynamicProps(Func<TActor> invoker)
735715 /// <returns>The actor created using the factory method.</returns>
736716 public override ActorBase NewActor ( )
737717 {
738- return invoker . Invoke ( ) ;
718+ return _invoker . Invoke ( ) ;
739719 }
740720
741721 #region Copy methods
742722
743723 private DynamicProps ( Props copy , Func < TActor > invoker )
744724 : base ( copy )
745725 {
746- this . invoker = invoker ;
726+ this . _invoker = invoker ;
747727 }
748728
749729 /// <summary>
@@ -753,7 +733,7 @@ private DynamicProps(Props copy, Func<TActor> invoker)
753733 protected override Props Copy ( )
754734 {
755735 var initialCopy = base . Copy ( ) ;
756- var invokerCopy = ( Func < TActor > ) invoker . Clone ( ) ;
736+ var invokerCopy = ( Func < TActor > ) _invoker . Clone ( ) ;
757737 return new DynamicProps < TActor > ( initialCopy , invokerCopy ) ;
758738 }
759739
0 commit comments