Class ConfigurationBuilderExtensions
Extension methods for IConfigurationBuilder.
Inherited Members
Namespace: Lucene.Net.Configuration
Assembly: Lucene.Net.TestFramework.dll
Syntax
public static class ConfigurationBuilderExtensions
Methods
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 |
---|---|---|
IConfigurationBuilder | builder | This IConfigurationBuilder. |
string | currentPath | The current path to start in. |
string | fileName | The filename to be searched for. |
Returns
Type | Description |
---|---|
IConfigurationBuilder | This IConfigurationBuilder. |
AddNUnitTestRunSettings(IConfigurationBuilder)
Helper Extension method to add a TestParameterConfigurationSource Uses the NUnit.Framework.TestContext.Parameters to build provider.
Declaration
[CLSCompliant(false)]
public static IConfigurationBuilder AddNUnitTestRunSettings(this IConfigurationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
IConfigurationBuilder | builder | This IConfigurationBuilder. |
Returns
Type | Description |
---|---|
IConfigurationBuilder | This 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 |
---|---|---|
IConfigurationBuilder | builder | This IConfigurationBuilder. |
string | currentPath | The current path to start in. |
string | fileName | The filename to be searched for. |
Returns
Type | Description |
---|---|
IConfigurationBuilder | This IConfigurationBuilder. |