Namespace Serenity.ServiceLocator.Application
Classes
AutoRegisterServiceAttribute
Marks a project class for automatic service registration at boot. The decorated class must expose a
public static void Install(IServiceLocator locator) method; Serenity discovers it by reflection
during bootstrap and invokes it, so the game's services self-register into the
IServiceLocator with no scene component or Inspector wiring.
AutoRegisterServiceBootstrap
Boot-time discovery of project services: finds every class marked
AutoRegisterServiceAttribute across the loaded assemblies and invokes its
public static void Install(IServiceLocator) method, so a game's services self-register into the
locator with no scene component. Mirrors the [AutoRegisterEventAction] discovery; each installer
runs in its own try/catch so one bad service can never abort boot.