private void DemoCustomActorMatching_Load(object sender, EventArgs e) { // 2. Create the actors. var hasOne = new Actor1E(1); var hasTwo = new Actor1E(2); // 3. Create match conditions. MatchIfValueIsOne = new CustomActorMatch(nameof(Actor1E.MyReceiver), 1); MatchIfValueIsTwo = new CustomActorMatch(nameof(Actor1E.MyReceiver), 2); // 4. Add actors to actorsystem. ActorSystem.AddActor(hasOne); ActorSystem.AddActor(hasTwo); }