Open sandboxFocus

Struct ProjectServiceProvider

Gives access to project-scoped services. A wrapper around ServiceProvider<TBase> for IProjectService.

Namespace: Metalama.Framework.Engine.Services
Assembly: Metalama.Framework.Sdk.dll
Syntax
public readonly struct ProjectServiceProvider

Properties

Name Description
Global
Underlying

Methods

Name Description
GetRequiredService<T>()
GetService<T>()
ToString()
WithService(IProjectService, bool)
WithServices(params IProjectService[])
WithServices(IEnumerable<IProjectService>)

Operators

Name Description
implicit operator GlobalServiceProvider(in ProjectServiceProvider)
implicit operator ServiceProvider<IProjectService>(in ProjectServiceProvider)
implicit operator ProjectServiceProvider(ServiceProvider<IProjectService>)