Gives access to globally scoped services. A wrapper around ServiceProvider<TBase> for IGlobalService.
Namespace: Metalama.Framework.Engine.Services
Assembly: Metalama.Framework.Sdk.dll
Syntax
public readonly struct GlobalServiceProvider
Properties
Name | Description |
---|---|
IsNull | |
Underlying |
Methods
Name | Description |
---|---|
GetRequiredService<T>() | |
GetService<T>() | |
ToString() | |
WithService(IGlobalService) | |
WithServices(params IGlobalService[]) |
Operators
Name | Description |
---|---|
implicit operator ServiceProvider<IGlobalService>(GlobalServiceProvider) | |
implicit operator GlobalServiceProvider(ServiceProvider<IGlobalService>) |