#367 Remove HttpContext.Get/SetFeature. Take 2.

This commit is contained in:
Chris R 2015-08-31 16:41:27 -07:00
parent f475e53ad2
commit e45e70da01
2 changed files with 0 additions and 24 deletions

View File

@ -39,19 +39,5 @@ namespace Microsoft.AspNet.Http
public abstract void Abort();
public abstract void Dispose();
public abstract object GetFeature(Type type);
public abstract void SetFeature(Type type, object instance);
public virtual T GetFeature<T>()
{
return (T)GetFeature(typeof(T));
}
public virtual void SetFeature<T>(T instance)
{
SetFeature(typeof(T), instance);
}
}
}

View File

@ -171,15 +171,5 @@ namespace Microsoft.AspNet.Http.Internal
// REVIEW: is this necessary? is the environment "owned" by the context?
_features.Dispose();
}
public override object GetFeature(Type type)
{
return _features[type];
}
public override void SetFeature(Type type, object instance)
{
_features[type] = instance;
}
}
}