Implemented interface member:
property
this
Microsoft.AspNetCore.Http.Features.IFeatureCollection.this[System.Type]
22 writes to
Microsoft.AspNetCore.Http.Tests (16)
Features\QueryFeatureTests.cs (16)
13features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "foo=bar" }; 30features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 50features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 67features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 80features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?=value1&=" }; 94features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key1=valueA&key2=valueB&key1=valueC" }; 109features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key1=valueA&key2=valueB&key1=valueC&key1=valueD" }; 124features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key1=&key2=" }; 142features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = queryString }; 155features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D" }; 169features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?=fields+%5BtodoItems%5D" }; 183features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D=" }; 197features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D=%5B+1+%5D" }; 211features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?fields+%5BtodoItems%5D=%5B+1+%5D&fields+%5BtodoItems%5D=%5B+2+%5D" }; 226features[typeof(IHttpRequestFeature)] = new HttpRequestFeature 245features[typeof(IHttpRequestFeature)] = new HttpRequestFeature { QueryString = "?key=1&Key=2&key=3&Key=4&KEy=5" };
Microsoft.AspNetCore.TestHost (1)
HttpContextBuilder.cs (1)
235newFeatures[pair.Key] = pair.Value;
Microsoft.Extensions.Features (1)
FeatureCollection.cs (1)
140this[typeof(TFeature)] = instance;
Microsoft.Extensions.Features.Tests (4)
FeatureCollectionTests.cs (4)
17interfaces[typeof(IThing)] = thing; 29interfaces[typeof(IThing)] = thing; 40interfaces[typeof(IThing)] = thing; 43interfaces[typeof(IThing)] = null;
6 references to
Microsoft.Extensions.Features (2)
FeatureCollection.cs (2)
125var feature = this[typeof(TFeature)]; 134return (TFeature?)this[typeof(TFeature)];
Microsoft.Extensions.Features.Tests (4)
FeatureCollectionTests.cs (4)
19var thing2 = interfaces[typeof(IThing)]; 31Assert.Equal(interfaces[typeof(IThing)], thing); 41Assert.Equal(interfaces[typeof(IThing)], thing); 45var thing2 = interfaces[typeof(IThing)];