Skip to content
Browse files

renamed factory to repository in configuration

  • Loading branch information...
1 parent 643eeda commit 7b60b2edf2f4864efc53ade476f217d7e0479b59 @SteveMoyer committed Nov 6, 2011
View
4 .gitignore
@@ -4,4 +4,6 @@ nToggle.suo
nToggle.vsmdi
TestResults/
*.user
-_ReSharper*
+_ReSharper*
+obj
+bin
View
14 nToggle/Configuration/ToggleElement.cs
@@ -6,15 +6,15 @@ namespace nToggle.Configuration
public class ToggleElement: ConfigurationElement
{
private const string ValueProperty = "value";
- private const string FactoryProperty = "factory";
+ private const string RepositoryProperty = "repository";
private const string NameProperty = "name";
private const string DefaultFactoryClass = null;
public ToggleElement(String name,
- String factory)
+ String repository)
{
Name = name;
- Factory = factory;
+ Repository = repository;
}
public ToggleElement()
@@ -41,18 +41,18 @@ public string Name
}
}
- [ConfigurationProperty(FactoryProperty,
+ [ConfigurationProperty(RepositoryProperty,
DefaultValue = DefaultFactoryClass,
IsRequired = false)]
- public string Factory
+ public string Repository
{
get
{
- return (string)this[FactoryProperty];
+ return (string)this[RepositoryProperty];
}
set
{
- this[FactoryProperty] = value;
+ this[RepositoryProperty] = value;
}
}
View
4 nToggle/FeatureToggleFactory.cs
@@ -33,14 +33,14 @@ private static FeatureToggleFactory LoadFactory()
var staticToggleRepository = new StaticToggleRepository(toggleValueDictionary);
foreach (ToggleElement toggle in config.Toggles)
{
- if (!toggle.Value || String.IsNullOrEmpty(toggle.Factory))
+ if (!toggle.Value || String.IsNullOrEmpty(toggle.Repository))
{
toggleRepositoryDictionary.Add(toggle.Name, staticToggleRepository);
toggleValueDictionary.Add(toggle.Name, toggle.Value);
}
else
{
- var strings = toggle.Factory.Split(',');
+ var strings = toggle.Repository.Split(',');
var dynamicRepo =
(IFeatureToggleRepository) Activator.CreateInstance(strings[0], strings[1]).Unwrap();
View
4 nToggle/Properties/AssemblyInfo.cs
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.0.0.1")]
-[assembly: AssemblyFileVersion("1.0.0.1")]
+[assembly: AssemblyVersion("0.0.0.3")]
+[assembly: AssemblyFileVersion("0.0.0.3")]
View
BIN nToggleDynamicFeatureTest/bin/Debug/nToggle.dll
Binary file not shown.
View
BIN nToggleDynamicFeatureTest/bin/Debug/nToggle.pdb
Binary file not shown.
View
BIN nToggleDynamicFeatureTest/bin/Debug/nToggleDynamicFeatureTest.dll
Binary file not shown.
View
BIN nToggleDynamicFeatureTest/bin/Debug/nToggleDynamicFeatureTest.pdb
Binary file not shown.
View
BIN nToggleDynamicFeatureTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Binary file not shown.
View
7 nToggleDynamicFeatureTest/obj/Debug/nToggleDynamicFeatureTest.csproj.FileListAbsolute.txt
@@ -1,7 +0,0 @@
-C:\projects\nToggle\nToggleDynamicFeatureTest\bin\Debug\nToggleDynamicFeatureTest.dll
-C:\projects\nToggle\nToggleDynamicFeatureTest\bin\Debug\nToggleDynamicFeatureTest.pdb
-C:\projects\nToggle\nToggleDynamicFeatureTest\bin\Debug\nToggle.dll
-C:\projects\nToggle\nToggleDynamicFeatureTest\bin\Debug\nToggle.pdb
-C:\projects\nToggle\nToggleDynamicFeatureTest\obj\Debug\ResolveAssemblyReference.cache
-C:\projects\nToggle\nToggleDynamicFeatureTest\obj\Debug\nToggleDynamicFeatureTest.dll
-C:\projects\nToggle\nToggleDynamicFeatureTest\obj\Debug\nToggleDynamicFeatureTest.pdb
View
BIN nToggleDynamicFeatureTest/obj/Debug/nToggleDynamicFeatureTest.dll
Binary file not shown.
View
BIN nToggleDynamicFeatureTest/obj/Debug/nToggleDynamicFeatureTest.pdb
Binary file not shown.
View
2 nToggleWebTestApp/Web.config
@@ -13,7 +13,7 @@
<toggles>
<add name="TestFeatureOn" value="True"/>
<add name="TestFeatureOff" value="False"/>
- <add name="DynamicFeature" factory="nToggleDynamicFeatureTest,nToggleDynamicFeatureTest.TestDynamicRepository" value="True"/>
+ <add name="DynamicFeature" repository="nToggleDynamicFeatureTest,nToggleDynamicFeatureTest.TestDynamicRepository" value="True"/>
</toggles>
</nToggle>
<system.webServer>

0 comments on commit 7b60b2e

Please sign in to comment.
Something went wrong with that request. Please try again.