Open sandboxFocus

Method GetService

GetService<T>(bool)

In Metalama, use ServiceProvider.

Declaration
T GetService<T>(bool throwing = true) where T : class, IService
Parameters
Type Name Description
bool throwing
Returns
Type Description
T
Type Parameters
Name Description
T