parent
c05c203c28
commit
4265855652
|
|
@ -14,8 +14,13 @@ namespace Microsoft.AspNet.Http.Features
|
||||||
Revision = collection.Revision;
|
Revision = collection.Revision;
|
||||||
}
|
}
|
||||||
|
|
||||||
public readonly IFeatureCollection Collection;
|
public IFeatureCollection Collection { get; private set; }
|
||||||
public int Revision;
|
public int Revision { get; private set; }
|
||||||
|
|
||||||
|
// cache is a public field because the code calling Fetch must
|
||||||
|
// be able to pass ref values that "dot through" the TCache struct memory,
|
||||||
|
// if it was a Property then that getter would return a copy of the memory
|
||||||
|
// preventing the use of "ref"
|
||||||
public TCache Cache;
|
public TCache Cache;
|
||||||
|
|
||||||
public TFeature Fetch<TFeature, TState>(
|
public TFeature Fetch<TFeature, TState>(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue