They seem so similar. I can register something in the GlobalContainer:
GlobalContainer.RegisterType<TMyImplementation>.Implements<IMyInterface>;
And get an instance via GlobalContainer
or ServiceLocator
, both of them work:
MyInstance := GlobalContainer.Resolve<IMyInterface>;
MyInstance := ServiceLocator.GetService<IMyInterface>;