Fork me on GitHub
  • API

    Show / Hide Table of Contents

    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 Source

    GetConfiguration()

    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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2022 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.