Akka.Streams.TestKit.Tests.StreamTestDefaultMailbox.SetActor C# (CSharp) Метод

SetActor() публичный Метод

public SetActor ( ActorCell actorCell ) : void
actorCell Akka.Actor.ActorCell
Результат void
        public override void SetActor(ActorCell actorCell)
        {
            if (actorCell.Self is ActorRefWithCell)
            {
                var actorType = actorCell.Props.Type;
                if (!typeof (ActorBase).IsAssignableFrom(actorType))
                    throw new ArgumentException(
                        string.Format("Don't use anonymouse actor classes, actor class for {0} was [{1}]", actorCell,
                            actorType.FullName));
                // StreamTcpManager is allowed to use another dispatcher
                if (actorType.FullName.StartsWith("Akka.Streams."))
                    throw new ArgumentException(
                        string.Format(
                            "{0} with actor class [{1}] must not run on default dispatcher in tests. Did you forget to define `props.withDispatcher` when creating the actor? Or did you forget to configure the `akka.stream.materializer` setting accordingly or force the dispatcher using `ActorMaterializerSettings(sys).withDispatcher(\"akka.test.stream-dispatcher\")` in the test?",
                            actorCell, actorType.FullName));
            }

            base.SetActor(actorCell);
        }
    }
StreamTestDefaultMailbox