Skip to content
This repository was archived by the owner on Nov 20, 2018. It is now read-only.

Commit e45e70d

Browse files
committed
#367 Remove HttpContext.Get/SetFeature. Take 2.
1 parent f475e53 commit e45e70d

File tree

2 files changed

+0
-24
lines changed

2 files changed

+0
-24
lines changed

src/Microsoft.AspNet.Http.Abstractions/HttpContext.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,5 @@ public abstract class HttpContext : IDisposable
3939
public abstract void Abort();
4040

4141
public abstract void Dispose();
42-
43-
public abstract object GetFeature(Type type);
44-
45-
public abstract void SetFeature(Type type, object instance);
46-
47-
public virtual T GetFeature<T>()
48-
{
49-
return (T)GetFeature(typeof(T));
50-
}
51-
52-
public virtual void SetFeature<T>(T instance)
53-
{
54-
SetFeature(typeof(T), instance);
55-
}
5642
}
5743
}

src/Microsoft.AspNet.Http/DefaultHttpContext.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,5 @@ public override void Dispose()
171171
// REVIEW: is this necessary? is the environment "owned" by the context?
172172
_features.Dispose();
173173
}
174-
175-
public override object GetFeature(Type type)
176-
{
177-
return _features[type];
178-
}
179-
180-
public override void SetFeature(Type type, object instance)
181-
{
182-
_features[type] = instance;
183-
}
184174
}
185175
}

0 commit comments

Comments
 (0)