#367 Remove HttpContext.Get/SetFeature. Take 2.
This commit is contained in:
parent
f475e53ad2
commit
e45e70da01
|
|
@ -39,19 +39,5 @@ namespace Microsoft.AspNet.Http
|
||||||
public abstract void Abort();
|
public abstract void Abort();
|
||||||
|
|
||||||
public abstract void Dispose();
|
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);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -171,15 +171,5 @@ namespace Microsoft.AspNet.Http.Internal
|
||||||
// REVIEW: is this necessary? is the environment "owned" by the context?
|
// REVIEW: is this necessary? is the environment "owned" by the context?
|
||||||
_features.Dispose();
|
_features.Dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
public override object GetFeature(Type type)
|
|
||||||
{
|
|
||||||
return _features[type];
|
|
||||||
}
|
|
||||||
|
|
||||||
public override void SetFeature(Type type, object instance)
|
|
||||||
{
|
|
||||||
_features[type] = instance;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue