Owin adapter: Fix FeatureMap constructor visibility.

This commit is contained in:
Chris Ross 2014-05-06 15:08:50 -07:00
parent 8b26f1d319
commit 4e36207b14
1 changed files with 4 additions and 4 deletions

View File

@ -238,12 +238,12 @@ namespace Microsoft.AspNet.Owin
public class FeatureMap public class FeatureMap
{ {
internal FeatureMap(Type featureInterface, Func<object, object> getter) public FeatureMap(Type featureInterface, Func<object, object> getter)
: this(featureInterface, getter, null) : this(featureInterface, getter, null)
{ {
} }
internal FeatureMap(Type featureInterface, Func<object, object> getter, Action<object, object> setter) public FeatureMap(Type featureInterface, Func<object, object> getter, Action<object, object> setter)
{ {
FeatureInterface = featureInterface; FeatureInterface = featureInterface;
Getter = getter; Getter = getter;
@ -272,12 +272,12 @@ namespace Microsoft.AspNet.Owin
public class FeatureMap<T> : FeatureMap public class FeatureMap<T> : FeatureMap
{ {
internal FeatureMap(Func<T, object> getter) public FeatureMap(Func<T, object> getter)
: base(typeof(T), feature => getter((T)feature)) : base(typeof(T), feature => getter((T)feature))
{ {
} }
internal FeatureMap(Func<T, object> getter, Action<T, object> setter) public FeatureMap(Func<T, object> getter, Action<T, object> setter)
: base(typeof(T), feature => getter((T)feature), (feature, value) => setter((T)feature, value)) : base(typeof(T), feature => getter((T)feature), (feature, value) => setter((T)feature, value))
{ {
} }