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