public ParentActor()
            {
                var childActor1 = Context.ActorOf(Context.DI().PropsFactory <ChildActor>().Create(), "Child1");
                var childActor2 = Context.ActorOf(Context.DI().PropsFactory <ChildActor>().Create(), "Child2");

                childActor1.Tell("Hello, Kid");
                childActor2.Tell("Hello, Kid");
            }
Example #2
0
            public ParentActor()
            {
                var childActor = Context.ActorOf(Context.DI().Props <ChildActor>());

                childActor.Tell("Hello, Kid");
            }