Stack based service locator for .Net