Class ServiceProvider
Used for interop with code that requires an IServiceProvider. This class defers to the MEF container to resolve services.
[Export(typeof(IServiceProvider))]
public class ServiceProvider : IServiceProvider
- Inheritance
-
ServiceProvider
- Implements
- Inherited Members
Methods
GetService(Type)
Looks up the specified service.
public object GetService(Type serviceType)
Parameters
serviceType
Type