What are the limitations of Service Locator Pattern?
See https://stackify.com/service-locator-pattern/
Hi vinodkpasi,
Here is an introduction about The Service Locator Pattern for your as a reference. It illustrates the drawbacks of this model and the considerations for implementing this mode.
https://docs.microsoft.com/en-us/previous-versions/msp-n-p/ff648968(v=pandp.10)?redirectedfrom=MSDN
You can also refer to this link, It introduces one of the limitation of this pattern: lazy initialization.
http://www.stefanoricciardi.com/2009/10/13/service-locator-pattern-in-c-with-lazy-initialization/
Hope this can help you.
Best regards,
Sam