Interface IConfigurationFactory
Contract for extending the functionality of system properties by providing an application-defined Microsoft.Extensions.Configuration.IConfiguration instance.
Usage: Implement this interface and set the implementation at application startup using SetConfigurationFactory(IConfigurationFactory).
Namespace: Lucene.Net.Configuration
Assembly: Lucene.Net.dll
Syntax
[CLSCompliant(false)]
public interface IConfigurationFactory
Methods
| Improve this Doc View SourceGetConfiguration()
Gets or creates an instance of Microsoft.Extensions.Configuration.IConfiguration that Lucene.NET can use to read application-defined settings.
The implementation is responsible for the lifetime of the Microsoft.Extensions.Configuration.IConfiguration instance. A typical implementation will either get the instance from a dependency injection container or provide its own caching mechanism to ensure the settings are not reloaded each time the method is called.
Declaration
IConfiguration GetConfiguration()
Returns
Type | Description |
---|---|
Microsoft.Extensions.Configuration.IConfiguration | The current Microsoft.Extensions.Configuration.IConfiguration instance. |