Interface IServiceProvider
Defines a mechanism for retrieving a service object; that is, an object that provides custom support to other objects.
Namespace: System
Assembly: nanoFramework.DependencyInjection.dll
Syntax
public interface IServiceProvider
Methods
GetService(Type)
Gets the service object of the specified type.
Declaration
object GetService(Type serviceType)
Parameters
Type | Name | Description |
---|---|---|
Type | serviceType | An object that specifies the type of service object to get. |
Returns
Type | Description |
---|---|
object | A service object of type |
GetService(Type[])
Gets the service objects of the specified type.
Declaration
object[] GetService(Type[] serviceType)
Parameters
Type | Name | Description |
---|---|---|
Type[] | serviceType | An array object that specifies the type of service object to get. |
Returns
Type | Description |
---|---|
object[] | A service object array of type |