/// <summary> /// Initializes the newly created <c>Actor</c>. /// </summary> protected Actor() { var maybeEnvironment = ActorFactory.ThreadLocalEnvironment.Value; LifeCycle = new LifeCycle(maybeEnvironment ?? new TestEnvironment()); ActorFactory.ThreadLocalEnvironment.Value = null; completes = new ResultCompletes <object>(); }
internal ICompletesEventually CompletesEventually(ResultCompletes completes) { if (CompletesEventuallyAddress == null) { var completesEventually = Stage.World.CompletesFor(completes.ClientCompletes()); CompletesEventuallyAddress = completesEventually.Address; return(completesEventually); } return(Stage.World.CompletesFor(CompletesEventuallyAddress, completes.ClientCompletes())); }