@@ -7,10 +7,10 @@ namespace FeatureSwitcher.Configuration
77 internal class FeatureConfigurationFor < TContext > : IConfigureFeaturesFor < TContext > , IConfigureBehaviorFor < TContext > , IConfigureNamingFor < TContext >
88 where TContext : IContext
99 {
10- private Func < TContext , Feature . NameOf [ ] > _nameOf ;
11- private Func < TContext , Feature . NameOf [ ] > NameOf
10+ private Func < TContext , Feature . NamingConvention [ ] > _namingConvention ;
11+ private Func < TContext , Feature . NamingConvention [ ] > NamingConvention
1212 {
13- get { return _nameOf ?? ( ctx => null ) ; }
13+ get { return _namingConvention ?? ( ctx => null ) ; }
1414 }
1515 private Func < TContext , Feature . Behavior [ ] > _behavior ;
1616 private Func < TContext , Feature . Behavior [ ] > Behavior
@@ -38,19 +38,19 @@ IConfigureFeaturesFor<TContext> IConfigureFeaturesFor<TContext>.And
3838 get { return this ; }
3939 }
4040
41- public IConfigureNaming NamedBy
41+ IConfigureNaming IConfigureFeatures . NamedBy
4242 {
4343 get { return this ; }
4444 }
4545
46- public IConfigureBehavior ConfiguredBy
46+ IConfigureBehavior IConfigureFeatures . ConfiguredBy
4747 {
4848 get { return this ; }
4949 }
5050
51- IConfigureFeaturesFor < TContext > IConfigureNamingFor < TContext > . Custom ( Func < TContext , Feature . NameOf [ ] > naming )
51+ IConfigureFeaturesFor < TContext > IConfigureNamingFor < TContext > . Custom ( Func < TContext , Feature . NamingConvention [ ] > namingConventions )
5252 {
53- _nameOf = naming ;
53+ _namingConvention = namingConventions ;
5454 return this ;
5555 }
5656
@@ -60,9 +60,9 @@ IConfigureFeaturesFor<TContext> IConfigureBehaviorFor<TContext>.Custom(Func<TCon
6060 return this ;
6161 }
6262
63- IConfigureFeatures IConfigureNaming . Custom ( params Feature . NameOf [ ] nameOfs )
63+ IConfigureFeatures IConfigureNaming . Custom ( params Feature . NamingConvention [ ] namingConventions )
6464 {
65- return ( this as IConfigureNamingFor < TContext > ) . Custom ( ctx => nameOfs ) ;
65+ return ( this as IConfigureNamingFor < TContext > ) . Custom ( ctx => namingConventions ) ;
6666 }
6767
6868 IConfigureFeatures IConfigureBehavior . Custom ( params Feature . Behavior [ ] behaviors )
@@ -73,7 +73,7 @@ IConfigureFeatures IConfigureBehavior.Custom(params Feature.Behavior[] behaviors
7373 public Feature . Configuration For ( TContext context )
7474 {
7575 return new Feature . Configuration (
76- type => ( NameOf ( context ) ?? new Feature . NameOf [ 0 ] ) . Where ( x => x != null ) . Select ( x => x ( type ) ) . FirstOrDefault ( x => x != null ) ,
76+ type => ( NamingConvention ( context ) ?? new Feature . NamingConvention [ 0 ] ) . Where ( x => x != null ) . Select ( x => x ( type ) ) . FirstOrDefault ( x => x != null ) ,
7777 name => ( Behavior ( context ) ?? new Feature . Behavior [ 0 ] ) . Select ( x => x ( name ) ) . FirstOrDefault ( x => x . HasValue ) ,
7878 typeof ( TContext ) != typeof ( Default ) ? FeatureConfiguration . For ( Default . Context ) : Feature . Configuration . Current ) ;
7979 }
0 commit comments