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