Method GetService
| Improve this Doc View SourceGetService<T>(Boolean)
Gets the service.
Declaration
T GetService<T>(bool autoCreate = true)
where T : class, IService
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | autoCreate | Indicates whether the service should be created automatically. |
Returns
Type | Description |
---|---|
T | The result service. |
Type Parameters
Name | Description |
---|---|
T | The type of the service. |