Class ConfigurationBuilderExtensions
Extension methods for Microsoft.Extensions.Configuration.IConfigurationBuilder.
Inheritance
Inherited Members
Namespace: Lucene.Net.Configuration
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class ConfigurationBuilderExtensions
Methods
| Improve this Doc View SourceAddJsonFilesFromRootDirectoryTo(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. |
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. |
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. |