Class TestParameterConfigurationProvider
Inheritance
System.Object
TestParameterConfigurationProvider
Implements
Microsoft.Extensions.Configuration.IConfigurationProvider
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 class TestParameterConfigurationProvider : IConfigurationProvider
Constructors
| Improve this Doc View SourceTestParameterConfigurationProvider(TestParameters)
Initializes a new instance.
Declaration
public TestParameterConfigurationProvider(TestParameters testParameters)
Parameters
Type | Name | Description |
---|---|---|
NUnit.Framework.TestParameters | testParameters | The Test Parameter args. |
Methods
| Improve this Doc View SourceGetChildKeys(IEnumerable<String>, String)
Returns the list of keys that this provider has.
Declaration
public IEnumerable<string> GetChildKeys(IEnumerable<string> earlierKeys, string parentPath)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<System.String> | earlierKeys | The earlier keys that other providers contain. |
System.String | parentPath | The path for the parent IConfiguration. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.String> | The list of keys for this provider. |
GetReloadToken()
Returns a Microsoft.Extensions.Primitives.IChangeToken that can be used to listen when this provider is reloaded.
Declaration
[CLSCompliant(false)]
public IChangeToken GetReloadToken()
Returns
Type | Description |
---|---|
Microsoft.Extensions.Primitives.IChangeToken |
Load()
Loads (or reloads) the data for this provider.
Declaration
public void Load()
Set(String, String)
Sets a value for a given key.
Declaration
public void Set(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The configuration key to set. |
System.String | value | The value to set. |
TryGet(String, out String)
Attempts to find a value with the given key, returns true if one is found, false otherwise.
Declaration
public bool TryGet(string key, out string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key to lookup. |
System.String | value | The value found at key if one is found. |
Returns
Type | Description |
---|---|
System.Boolean | True if key has a value, false otherwise. |
Implements
Microsoft.Extensions.Configuration.IConfigurationProvider