Provides extensions methods to the IServiceProvider interface.
Namespace: Metalama.Framework.Project
Assembly: Metalama.Framework.dll
Syntax
[CompileTime]
public static class ServiceProviderExtensionsMethods
| Name | Description |
|---|---|
| GetRequiredService<T>(IServiceProvider<IGlobalService>) | Gets a required globally scoped service from the service provider, throwing an exception if the service is not available. |
| GetRequiredService<T>(IServiceProvider<IProjectService>) | Gets a required project-scoped service from the service provider, throwing an exception if the service is not available. |