Class TestParameterConfigurationProvider
Implements
Inherited Members
Namespace: Lucene.Net.Configuration
Assembly: Lucene.Net.TestFramework.dll
Syntax
public class TestParameterConfigurationProvider : IConfigurationProvider
  Constructors
TestParameterConfigurationProvider(TestParameters)
Initializes a new instance.
Declaration
public TestParameterConfigurationProvider(TestParameters testParameters)
  Parameters
| Type | Name | Description | 
|---|---|---|
| TestParameters | testParameters | The Test Parameter args.  | 
      
Methods
GetChildKeys(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 | 
|---|---|---|
| IEnumerable<string> | earlierKeys | The earlier keys that other providers contain.  | 
      
| string | parentPath | The path for the parent IConfiguration.  | 
      
Returns
| Type | Description | 
|---|---|
| IEnumerable<string> | The list of keys for this provider.  | 
      
GetReloadToken()
Returns a IChangeToken that can be used to listen when this provider is reloaded.
Declaration
[CLSCompliant(false)]
public IChangeToken GetReloadToken()
  Returns
| Type | Description | 
|---|---|
| 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 | 
|---|---|---|
| string | key | The configuration key to set.  | 
      
| 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 | 
|---|---|---|
| string | key | The key to lookup.  | 
      
| string | value | The value found at key if one is found.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | True if key has a value, false otherwise.  |