Metalama 1.0 / / Metalama Documentation / Extensions API / Metalama.​Extensions.​Dependency­Injection.​Service­Locator / Service­Provider­Provider / Service­Provider

Property ServiceProvider

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.

Declaration
public static Func<IServiceProvider> ServiceProvider { get; set; }
Property Value
Type Description
Func<IServiceProvider>