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

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)