Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class ConfigurationBuilderExtensions

    Extension methods for Microsoft.Extensions.Configuration.IConfigurationBuilder.

    Inheritance
    System.Object
    ConfigurationBuilderExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Configuration
    Assembly: Lucene.Net.TestFramework.dll
    Syntax
    public static class ConfigurationBuilderExtensions

    Methods

    | Improve this Doc View Source

    AddJsonFilesFromRootDirectoryTo(IConfigurationBuilder, String, String)

    Scans from currentPath to the root directory looking for fileName configuration settings. This loads a Json Configuration provider in ascending hierarchy.

    Declaration
    [CLSCompliant(false)]
    public static IConfigurationBuilder AddJsonFilesFromRootDirectoryTo(this IConfigurationBuilder builder, string currentPath, string fileName)
    Parameters
    Type Name Description
    Microsoft.Extensions.Configuration.IConfigurationBuilder builder

    This Microsoft.Extensions.Configuration.IConfigurationBuilder.

    System.String currentPath

    The current path to start in.

    System.String fileName

    The filename to be searched for.

    Returns
    Type Description
    Microsoft.Extensions.Configuration.IConfigurationBuilder

    This Microsoft.Extensions.Configuration.IConfigurationBuilder.

    | Improve this Doc View Source

    AddNUnitTestRunSettings(IConfigurationBuilder)

    Helper Extension method to add a Lucene.Net.Configuration.TestParameterConfigurationSource Uses the NUnit.Framework.TestContext.Parameters to build provider.

    Declaration
    [CLSCompliant(false)]
    public static IConfigurationBuilder AddNUnitTestRunSettings(this IConfigurationBuilder builder)
    Parameters
    Type Name Description
    Microsoft.Extensions.Configuration.IConfigurationBuilder builder

    This Microsoft.Extensions.Configuration.IConfigurationBuilder.

    Returns
    Type Description
    Microsoft.Extensions.Configuration.IConfigurationBuilder

    This Microsoft.Extensions.Configuration.IConfigurationBuilder.

    | Improve this Doc View Source

    AddXmlFilesFromRootDirectoryTo(IConfigurationBuilder, String, String)

    Scans from currentPath to the root directory looking for fileName configuration settings. This loads a XML Configuration provider in ascending hierarchy.

    Declaration
    [CLSCompliant(false)]
    public static IConfigurationBuilder AddXmlFilesFromRootDirectoryTo(this IConfigurationBuilder builder, string currentPath, string fileName)
    Parameters
    Type Name Description
    Microsoft.Extensions.Configuration.IConfigurationBuilder builder

    This Microsoft.Extensions.Configuration.IConfigurationBuilder.

    System.String currentPath

    The current path to start in.

    System.String fileName

    The filename to be searched for.

    Returns
    Type Description
    Microsoft.Extensions.Configuration.IConfigurationBuilder

    This Microsoft.Extensions.Configuration.IConfigurationBuilder.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2021 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.