3 writes to Collection
Microsoft.Extensions.Features (3)
FeatureReferences.cs (3)
21
Collection
= collection;
34
Collection
= collection;
46
Collection
= collection;
14 references to Collection
Microsoft.AspNetCore.Http (8)
DefaultHttpContext.cs (1)
139
public override IFeatureCollection Features => _features.
Collection
?? ContextDisposed();
Features\QueryFeature.cs (2)
54
if (_features.
Collection
is null)
75
if (_features.
Collection
!= null)
Features\RequestCookiesFeature.cs (2)
51
if (_features.
Collection
== null)
75
if (_features.
Collection
!= null)
Internal\DefaultHttpResponse.cs (3)
72
var otherFeature = _features.
Collection
.GetRequiredFeature<IHttpResponseBodyFeature>();
79
_features.
Collection
.Set(streamFeature.PriorFeature);
83
_features.
Collection
.Set<IHttpResponseBodyFeature>(new StreamResponseBodyFeature(value, otherFeature));
Microsoft.Extensions.Features (6)
FeatureReferences.cs (6)
99
var revision =
Collection
?.Revision ?? ContextDisposed();
120
cached =
Collection
.Get<TFeature>();
126
Collection
.Set(cached);
128
Revision =
Collection
.Revision;
144
where TFeature : class? => Fetch(ref cached,
Collection
, factory);
154
throw new ObjectDisposedException(nameof(
Collection
), nameof(IFeatureCollection) + " has been disposed.");