Exposes the global service provider used by the service locator dependency injection framework.
Namespace: Metalama.Extensions.DependencyInjection.ServiceLocator
Assembly: Metalama.Extensions.DependencyInjection.ServiceLocator.dll
Syntax
public static class ServiceProviderProviderRemarks
This class provides a global access point for dependency resolution when using the ServiceLocatorDependencyInjectionFramework. Configure the ServiceProvider property in your application startup code to provide the IServiceProvider instance.
Properties
| Name | Description |
|---|---|
| ServiceProvider | Gets or sets a delegate that provides a IServiceProvider. This delegate is called from types that consume dependencies. The default implementation is to return a IServiceProvider that contains no service. |