Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Framework.​Engine.​Services / IAdditional­Service­Collection / Add­Project­Service

Method AddProjectService

AddProjectService<T>(T, Boolean)

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

AddProjectService<T>(Func<ProjectServiceProvider, T>, Boolean)

Declaration
void AddProjectService<T>(Func<ProjectServiceProvider, T> service, bool allowOverride = false)
where T : class, IProjectService
Parameters
Type Name Description
Func<ProjectServiceProvider, T> service
Boolean allowOverride
Type Parameters
Name Description
T