Open sandboxFocus

Method AddGlobalService

AddGlobalService<T>(T, bool)

Declaration
void AddGlobalService<T>(T service, bool allowOverride = false) where T : IGlobalService
Parameters
Type Name Description
T service
bool allowOverride
Type Parameters
Name Description
T

AddGlobalService<T>(Func<GlobalServiceProvider, T>, bool)

Declaration
void AddGlobalService<T>(Func<GlobalServiceProvider, T> service, bool allowOverride = false) where T : class, IGlobalService
Parameters
Type Name Description
Func<GlobalServiceProvider, T> service
bool allowOverride
Type Parameters
Name Description
T