Open sandboxFocus

Method WithService

WithService(IProjectService, bool)

Returns a new ProjectServiceProvider with an additional service.

Declaration
public ProjectServiceProvider WithService(IProjectService service, bool allowOverride = false)
Parameters
Type Name Description
IProjectService service

The service to add.

bool allowOverride

Indicates whether to allow overriding an existing service.

Returns
Type Description
ProjectServiceProvider

A new provider instance with the added service.