register
Initializes the MainServiceLocator instance. If the If the serviceLocator's scope is ServiceLocatorScope.Production, this will throw an exception if the instance is already initialized. Otherwise it will overwrite the current instance.
This should typically only be called once at application startup. On Android, this is handled automatically by ServiceLocatorInitializer. If you need to perform manual registration (e.g., to pre-register services at startup), you must first disable the automatic initializer to avoid conflicts.
See also
Initializes the MainServiceLocator instance. If the If the scope is ServiceLocatorScope.Production, this will throw an exception if the instance is already initialized. Otherwise it will overwrite the current instance.
This should typically only be called once at application startup. On Android, this is handled automatically by ServiceLocatorInitializer. If you need to perform manual registration (e.g., to pre-register services at startup), you must first disable the automatic initializer to avoid conflicts.