Metalama 1.0 / / Metalama Documentation / Advanced API / Metalama.​Framework.​Engine.​Services / Global­Service­Provider

Class GlobalServiceProvider

Gives access to globally scoped services. A wrapper around ServiceProvider<TBase> for IGlobalService.

Inheritance
GlobalServiceProvider
Namespace: Metalama.Framework.Engine.Services
Assembly: Metalama.Framework.Sdk.dll
Syntax
public sealed class GlobalServiceProvider : ValueType

Properties

Name Description
Underlying

Methods

Name Description
GetRequiredService<T>()
GetService<T>()
ToString()
WithService(IGlobalService)
WithServices(IGlobalService[])

Operators

Name Description
Implicit(GlobalServiceProvider to ServiceProvider<IGlobalService>)
Implicit(ServiceProvider<IGlobalService> to GlobalServiceProvider)