MetalamaAPI documentationAdvanced APIMetalama.​Framework.​Engine.​ServicesIAdditional­Service­CollectionAdd­Global­Service
Open sandboxFocus

IAdditionalServiceCollection.AddGlobalService Method

AddGlobalService<T>(T, Boolean)

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

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

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