Method GetService
GetService(Type)
Gets the service of the specified type from the .NET Core service provider or falls back to the Unity container if the service is not found.
Declaration
public object GetService(Type serviceType)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | serviceType | The type of the service to get. |
Returns
| Type | Description |
|---|---|
| object | The service instance or |