Developing Applications Using the SharePoint Service Locator
This section describes how you can use the SharePoint Service Locator in your SharePoint applications. The first topic, Getting a Service Locator Instance, describes how to get started with the SharePoint Service Locator by obtaining a reference to the local service locator instance. The remaining topics build on this by providing guidance and reference material on common development tasks.
The topics in this section are as follows:
- Getting a Service Locator Instance
- Creating a New Service Locator Instance
- Retrieving Service Instances
- Adding Type Mappings
- Removing Type Mappings
Note
Before you can use the SharePoint Service Locator in your SharePoint applications, you must add assembly references to Microsoft.Practices.SharePoint.Common.dll and Microsoft.Practices.ServiceLocation.dll.
For broader, contextual guidance on specific scenarios, see Key Scenarios. For step by step guidance on the most common end-to-end tasks, see Developer How-To Topics.