Akka.Actor.RootGuardianActorRef.SetTempContainer C# (CSharp) Method

SetTempContainer() public method

public SetTempContainer ( IInternalActorRef tempContainer ) : void
tempContainer IInternalActorRef
return void
        public void SetTempContainer(IInternalActorRef tempContainer)
        {
            _tempContainer = tempContainer;
        }

Usage Example

 public void Getting_temp_child_Should_return_tempContainer()
 {
     var props = Props.Create<GuardianActor>(new OneForOneStrategy(e => Directive.Stop));
     var rootGuardianActorRef = new RootGuardianActorRef(sys, props, _dispatcher, () => sys.Mailboxes.FromConfig(""), ActorRef.Nobody, _rootActorPath, _deadLetters, _emptyExtraNames);
     var tempContainer = new DummyActorRef(_rootActorPath / "temp");
     rootGuardianActorRef.SetTempContainer(tempContainer);
     var actorRef = rootGuardianActorRef.GetSingleChild("temp");
     Assert.Same(tempContainer, actorRef);
 }
All Usage Examples Of Akka.Actor.RootGuardianActorRef::SetTempContainer