/// <summary> /// Registers the generic argument type <typeparamref name="TActor"/> as an actor type with an ActorService host of type <typeparamref name="TActorService"/>. /// </summary> /// <typeparam name="TActor">Type must derive from ActorBase</typeparam> /// <typeparam name="TActorService">Type must derive from ActorService</typeparam> /// <param name="registration">ComponentRegistration instance</param> /// <returns>ComponentRegistration instance for continued registration</returns> public static ComponentRegistration <TActor> AsActor <TActor, TActorService>(this ComponentRegistration <TActor> registration) where TActor : ActorBase where TActorService : ActorService { return(registration.AsActor <TActor>(c => c.WithService <TActorService>())); }