Interface IConfigurationFactory
Contract for extending the functionality of system properties by providing an application-defined 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
GetConfiguration()
Gets or creates an instance of IConfiguration that Lucene.NET can use to read application-defined settings.
The implementation is responsible for the lifetime of the 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 |
---|---|
IConfiguration | The current IConfiguration instance. |