Open sandboxFocus

Method GetService

GetService<T>()

Gets an optional service from the provider.

Declaration
public T? GetService<T>() where T : class, IGlobalService
Returns
Type Description
T

The service instance, or null if the service is not found.

Type Parameters
Name Description
T

The type of the service to retrieve.