GetService<T>()
Gets an optional service from the provider.
Declaration
public T? GetService<T>() where T : class, IGlobalServiceReturns
| Type | Description |
|---|---|
| T | The service instance, or |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the service to retrieve. |