401 references to Empty
Aspire.Dashboard.Tests (4)
BrowserSecurityHeadersMiddlewareTests.cs (4)
28
Assert.NotEqual(StringValues.
Empty
, httpContext.Response.Headers.ContentSecurityPolicy);
43
Assert.NotEqual(StringValues.
Empty
, httpContext.Response.Headers.ContentSecurityPolicy);
61
Assert.NotEqual(StringValues.
Empty
, httpContext.Response.Headers.ContentSecurityPolicy);
80
Assert.Equal(StringValues.
Empty
, httpContext.Response.Headers.ContentSecurityPolicy);
Microsoft.AspNetCore.Authentication.OAuth (2)
OAuthHandler.cs (2)
280
if (location == StringValues.
Empty
)
286
if (cookie == StringValues.
Empty
)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
371
if (location == StringValues.
Empty
)
377
if (cookie == StringValues.
Empty
)
Microsoft.AspNetCore.Http (9)
Features\RequestCookiesFeature.cs (1)
74
_original = StringValues.
Empty
;
FormCollection.cs (3)
65
/// or <see cref="StringValues.
Empty
"/> if the key is not present.</returns>
72
return StringValues.
Empty
;
79
return StringValues.
Empty
;
HeaderDictionary.cs (2)
73
return StringValues.
Empty
;
81
return StringValues.
Empty
;
QueryCollection.cs (2)
74
return StringValues.
Empty
;
81
return StringValues.
Empty
;
QueryCollectionInternal.cs (1)
35
public StringValues this[string key] => TryGetValue(key, out var value) ? value : StringValues.
Empty
;
Microsoft.AspNetCore.Http.Abstractions (2)
Internal\ParsingHelpers.cs (2)
14
return headers.TryGetValue(key, out value) ? value : StringValues.
Empty
;
46
return headers.TryGetValue(key, out values) ? values : StringValues.
Empty
;
Microsoft.AspNetCore.Http.Extensions (2)
HeaderDictionaryTypeExtensions.cs (1)
104
Headers.Append(name, StringValues.
Empty
);
RequestDelegateFactory.cs (1)
1971
Expression.Condition(Expression.Equal(valueExpression, Expression.Convert(Expression.Constant(StringValues.
Empty
), parameter.ParameterType)),
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
58
public StringValues this[string key] => StringValues.
Empty
;
Microsoft.AspNetCore.OutputCaching (2)
OutputCacheEntry.cs (1)
36
values = StringValues.
Empty
;
OutputCacheEntryFormatter.cs (1)
282
value = StringValues.
Empty
;
Microsoft.AspNetCore.Server.HttpSys (46)
RequestProcessing\Request.cs (1)
539
Headers.ContentLength = StringValues.
Empty
;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (2)
71
return TryGetValue(key, out values) ? values : StringValues.
Empty
;
159
_contentLengthText = StringValues.
Empty
;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
214
_contentLengthText = StringValues.
Empty
;
224
return TryGetValue(key, out var values) ? values : StringValues.
Empty
;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
76
return _Accept.Count > 0 ? _Accept : StringValues.
Empty
;
100
return _AcceptCharset.Count > 0 ? _AcceptCharset : StringValues.
Empty
;
124
return _AcceptEncoding.Count > 0 ? _AcceptEncoding : StringValues.
Empty
;
148
return _AcceptLanguage.Count > 0 ? _AcceptLanguage : StringValues.
Empty
;
172
return _Allow.Count > 0 ? _Allow : StringValues.
Empty
;
196
return _Authorization.Count > 0 ? _Authorization : StringValues.
Empty
;
220
return _CacheControl.Count > 0 ? _CacheControl : StringValues.
Empty
;
244
return _Connection.Count > 0 ? _Connection : StringValues.
Empty
;
268
return _ContentEncoding.Count > 0 ? _ContentEncoding : StringValues.
Empty
;
292
return _ContentLanguage.Count > 0 ? _ContentLanguage : StringValues.
Empty
;
316
return _ContentLength.Count > 0 ? _ContentLength : StringValues.
Empty
;
340
return _ContentLocation.Count > 0 ? _ContentLocation : StringValues.
Empty
;
364
return _ContentMD5.Count > 0 ? _ContentMD5 : StringValues.
Empty
;
388
return _ContentRange.Count > 0 ? _ContentRange : StringValues.
Empty
;
412
return _ContentType.Count > 0 ? _ContentType : StringValues.
Empty
;
436
return _Cookie.Count > 0 ? _Cookie : StringValues.
Empty
;
460
return _Date.Count > 0 ? _Date : StringValues.
Empty
;
484
return _Expect.Count > 0 ? _Expect : StringValues.
Empty
;
508
return _Expires.Count > 0 ? _Expires : StringValues.
Empty
;
532
return _From.Count > 0 ? _From : StringValues.
Empty
;
556
return _Host.Count > 0 ? _Host : StringValues.
Empty
;
580
return _IfMatch.Count > 0 ? _IfMatch : StringValues.
Empty
;
604
return _IfModifiedSince.Count > 0 ? _IfModifiedSince : StringValues.
Empty
;
628
return _IfNoneMatch.Count > 0 ? _IfNoneMatch : StringValues.
Empty
;
652
return _IfRange.Count > 0 ? _IfRange : StringValues.
Empty
;
676
return _IfUnmodifiedSince.Count > 0 ? _IfUnmodifiedSince : StringValues.
Empty
;
700
return _KeepAlive.Count > 0 ? _KeepAlive : StringValues.
Empty
;
724
return _LastModified.Count > 0 ? _LastModified : StringValues.
Empty
;
748
return _MaxForwards.Count > 0 ? _MaxForwards : StringValues.
Empty
;
772
return _Pragma.Count > 0 ? _Pragma : StringValues.
Empty
;
796
return _ProxyAuthorization.Count > 0 ? _ProxyAuthorization : StringValues.
Empty
;
820
return _Range.Count > 0 ? _Range : StringValues.
Empty
;
844
return _Referer.Count > 0 ? _Referer : StringValues.
Empty
;
868
return _TE.Count > 0 ? _TE : StringValues.
Empty
;
892
return _Trailer.Count > 0 ? _Trailer : StringValues.
Empty
;
916
return _TransferEncoding.Count > 0 ? _TransferEncoding : StringValues.
Empty
;
940
return _Translate.Count > 0 ? _Translate : StringValues.
Empty
;
964
return _Upgrade.Count > 0 ? _Upgrade : StringValues.
Empty
;
988
return _UserAgent.Count > 0 ? _UserAgent : StringValues.
Empty
;
1012
return _Via.Count > 0 ? _Via : StringValues.
Empty
;
1036
return _Warning.Count > 0 ? _Warning : StringValues.
Empty
;
Microsoft.AspNetCore.Server.IIS (45)
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\HeaderCollection.cs (2)
71
return TryGetValue(key, out values) ? values : StringValues.
Empty
;
159
_contentLengthText = StringValues.
Empty
;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.cs (2)
214
_contentLengthText = StringValues.
Empty
;
224
return TryGetValue(key, out var values) ? values : StringValues.
Empty
;
src\aspnetcore\src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (41)
76
return _Accept.Count > 0 ? _Accept : StringValues.
Empty
;
100
return _AcceptCharset.Count > 0 ? _AcceptCharset : StringValues.
Empty
;
124
return _AcceptEncoding.Count > 0 ? _AcceptEncoding : StringValues.
Empty
;
148
return _AcceptLanguage.Count > 0 ? _AcceptLanguage : StringValues.
Empty
;
172
return _Allow.Count > 0 ? _Allow : StringValues.
Empty
;
196
return _Authorization.Count > 0 ? _Authorization : StringValues.
Empty
;
220
return _CacheControl.Count > 0 ? _CacheControl : StringValues.
Empty
;
244
return _Connection.Count > 0 ? _Connection : StringValues.
Empty
;
268
return _ContentEncoding.Count > 0 ? _ContentEncoding : StringValues.
Empty
;
292
return _ContentLanguage.Count > 0 ? _ContentLanguage : StringValues.
Empty
;
316
return _ContentLength.Count > 0 ? _ContentLength : StringValues.
Empty
;
340
return _ContentLocation.Count > 0 ? _ContentLocation : StringValues.
Empty
;
364
return _ContentMD5.Count > 0 ? _ContentMD5 : StringValues.
Empty
;
388
return _ContentRange.Count > 0 ? _ContentRange : StringValues.
Empty
;
412
return _ContentType.Count > 0 ? _ContentType : StringValues.
Empty
;
436
return _Cookie.Count > 0 ? _Cookie : StringValues.
Empty
;
460
return _Date.Count > 0 ? _Date : StringValues.
Empty
;
484
return _Expect.Count > 0 ? _Expect : StringValues.
Empty
;
508
return _Expires.Count > 0 ? _Expires : StringValues.
Empty
;
532
return _From.Count > 0 ? _From : StringValues.
Empty
;
556
return _Host.Count > 0 ? _Host : StringValues.
Empty
;
580
return _IfMatch.Count > 0 ? _IfMatch : StringValues.
Empty
;
604
return _IfModifiedSince.Count > 0 ? _IfModifiedSince : StringValues.
Empty
;
628
return _IfNoneMatch.Count > 0 ? _IfNoneMatch : StringValues.
Empty
;
652
return _IfRange.Count > 0 ? _IfRange : StringValues.
Empty
;
676
return _IfUnmodifiedSince.Count > 0 ? _IfUnmodifiedSince : StringValues.
Empty
;
700
return _KeepAlive.Count > 0 ? _KeepAlive : StringValues.
Empty
;
724
return _LastModified.Count > 0 ? _LastModified : StringValues.
Empty
;
748
return _MaxForwards.Count > 0 ? _MaxForwards : StringValues.
Empty
;
772
return _Pragma.Count > 0 ? _Pragma : StringValues.
Empty
;
796
return _ProxyAuthorization.Count > 0 ? _ProxyAuthorization : StringValues.
Empty
;
820
return _Range.Count > 0 ? _Range : StringValues.
Empty
;
844
return _Referer.Count > 0 ? _Referer : StringValues.
Empty
;
868
return _TE.Count > 0 ? _TE : StringValues.
Empty
;
892
return _Trailer.Count > 0 ? _Trailer : StringValues.
Empty
;
916
return _TransferEncoding.Count > 0 ? _TransferEncoding : StringValues.
Empty
;
940
return _Translate.Count > 0 ? _Translate : StringValues.
Empty
;
964
return _Upgrade.Count > 0 ? _Upgrade : StringValues.
Empty
;
988
return _UserAgent.Count > 0 ? _UserAgent : StringValues.
Empty
;
1012
return _Via.Count > 0 ? _Via : StringValues.
Empty
;
1036
return _Warning.Count > 0 ? _Warning : StringValues.
Empty
;
Microsoft.AspNetCore.Server.IISIntegration (2)
ForwardedTlsConnectionFeature.cs (2)
27
if (_certificate == null && _header != StringValues.
Empty
)
44
_header = StringValues.
Empty
;
Microsoft.AspNetCore.Server.Kestrel.Core (282)
Internal\Http\HttpHeaders.cs (1)
55
return StringValues.
Empty
;
Internal\Http\HttpHeaders.Generated.cs (281)
396
return StringValues.
Empty
;
420
return StringValues.
Empty
;
444
return StringValues.
Empty
;
468
return StringValues.
Empty
;
492
return StringValues.
Empty
;
516
return StringValues.
Empty
;
540
return StringValues.
Empty
;
564
return StringValues.
Empty
;
588
return StringValues.
Empty
;
605
return StringValues.
Empty
;
633
return StringValues.
Empty
;
661
return StringValues.
Empty
;
689
return StringValues.
Empty
;
717
return StringValues.
Empty
;
745
return StringValues.
Empty
;
773
return StringValues.
Empty
;
801
return StringValues.
Empty
;
829
return StringValues.
Empty
;
857
return StringValues.
Empty
;
885
return StringValues.
Empty
;
913
return StringValues.
Empty
;
941
return StringValues.
Empty
;
969
return StringValues.
Empty
;
997
return StringValues.
Empty
;
1025
return StringValues.
Empty
;
1053
return StringValues.
Empty
;
1081
return StringValues.
Empty
;
1109
return StringValues.
Empty
;
1137
return StringValues.
Empty
;
1165
return StringValues.
Empty
;
1193
return StringValues.
Empty
;
1221
return StringValues.
Empty
;
1249
return StringValues.
Empty
;
1277
return StringValues.
Empty
;
1305
return StringValues.
Empty
;
1333
return StringValues.
Empty
;
1361
return StringValues.
Empty
;
1389
return StringValues.
Empty
;
1417
return StringValues.
Empty
;
1445
return StringValues.
Empty
;
1473
return StringValues.
Empty
;
1501
return StringValues.
Empty
;
1529
return StringValues.
Empty
;
1557
return StringValues.
Empty
;
1585
return StringValues.
Empty
;
1613
return StringValues.
Empty
;
1641
return StringValues.
Empty
;
1669
return StringValues.
Empty
;
1697
return StringValues.
Empty
;
1725
return StringValues.
Empty
;
1753
return StringValues.
Empty
;
1781
return StringValues.
Empty
;
1808
value = StringValues.
Empty
;
1825
value = StringValues.
Empty
;
1842
value = StringValues.
Empty
;
1859
value = StringValues.
Empty
;
1876
value = StringValues.
Empty
;
1893
value = StringValues.
Empty
;
1910
value = StringValues.
Empty
;
1927
value = StringValues.
Empty
;
1944
value = StringValues.
Empty
;
1961
value = StringValues.
Empty
;
1978
value = StringValues.
Empty
;
1995
value = StringValues.
Empty
;
2012
value = StringValues.
Empty
;
2029
value = StringValues.
Empty
;
2046
value = StringValues.
Empty
;
2063
value = StringValues.
Empty
;
2080
value = StringValues.
Empty
;
2097
value = StringValues.
Empty
;
2114
value = StringValues.
Empty
;
2131
value = StringValues.
Empty
;
2148
value = StringValues.
Empty
;
2165
value = StringValues.
Empty
;
2182
value = StringValues.
Empty
;
2199
value = StringValues.
Empty
;
2216
value = StringValues.
Empty
;
2233
value = StringValues.
Empty
;
2250
value = StringValues.
Empty
;
2267
value = StringValues.
Empty
;
2284
value = StringValues.
Empty
;
2301
value = StringValues.
Empty
;
2318
value = StringValues.
Empty
;
2335
value = StringValues.
Empty
;
2352
value = StringValues.
Empty
;
2369
value = StringValues.
Empty
;
2386
value = StringValues.
Empty
;
2403
value = StringValues.
Empty
;
2420
value = StringValues.
Empty
;
2437
value = StringValues.
Empty
;
2454
value = StringValues.
Empty
;
2471
value = StringValues.
Empty
;
2488
value = StringValues.
Empty
;
2505
value = StringValues.
Empty
;
2522
value = StringValues.
Empty
;
2539
value = StringValues.
Empty
;
2556
value = StringValues.
Empty
;
2573
value = StringValues.
Empty
;
8706
return StringValues.
Empty
;
8731
return StringValues.
Empty
;
8755
return StringValues.
Empty
;
8780
return StringValues.
Empty
;
8805
return StringValues.
Empty
;
8822
return StringValues.
Empty
;
8852
return StringValues.
Empty
;
8881
return StringValues.
Empty
;
8911
return StringValues.
Empty
;
8941
return StringValues.
Empty
;
8970
return StringValues.
Empty
;
8999
return StringValues.
Empty
;
9028
return StringValues.
Empty
;
9057
return StringValues.
Empty
;
9086
return StringValues.
Empty
;
9115
return StringValues.
Empty
;
9144
return StringValues.
Empty
;
9173
return StringValues.
Empty
;
9202
return StringValues.
Empty
;
9232
return StringValues.
Empty
;
9261
return StringValues.
Empty
;
9290
return StringValues.
Empty
;
9319
return StringValues.
Empty
;
9348
return StringValues.
Empty
;
9377
return StringValues.
Empty
;
9406
return StringValues.
Empty
;
9435
return StringValues.
Empty
;
9464
return StringValues.
Empty
;
9493
return StringValues.
Empty
;
9522
return StringValues.
Empty
;
9551
return StringValues.
Empty
;
9580
return StringValues.
Empty
;
9609
return StringValues.
Empty
;
9638
return StringValues.
Empty
;
9667
return StringValues.
Empty
;
9696
return StringValues.
Empty
;
9725
return StringValues.
Empty
;
9754
return StringValues.
Empty
;
9784
return StringValues.
Empty
;
9813
return StringValues.
Empty
;
9842
return StringValues.
Empty
;
9871
return StringValues.
Empty
;
9900
return StringValues.
Empty
;
9928
value = StringValues.
Empty
;
9946
value = StringValues.
Empty
;
9964
value = StringValues.
Empty
;
9982
value = StringValues.
Empty
;
10000
value = StringValues.
Empty
;
10018
value = StringValues.
Empty
;
10036
value = StringValues.
Empty
;
10054
value = StringValues.
Empty
;
10072
value = StringValues.
Empty
;
10090
value = StringValues.
Empty
;
10108
value = StringValues.
Empty
;
10126
value = StringValues.
Empty
;
10144
value = StringValues.
Empty
;
10162
value = StringValues.
Empty
;
10180
value = StringValues.
Empty
;
10198
value = StringValues.
Empty
;
10216
value = StringValues.
Empty
;
10234
value = StringValues.
Empty
;
10252
value = StringValues.
Empty
;
10270
value = StringValues.
Empty
;
10288
value = StringValues.
Empty
;
10306
value = StringValues.
Empty
;
10324
value = StringValues.
Empty
;
10342
value = StringValues.
Empty
;
10360
value = StringValues.
Empty
;
10378
value = StringValues.
Empty
;
10396
value = StringValues.
Empty
;
10414
value = StringValues.
Empty
;
10432
value = StringValues.
Empty
;
10450
value = StringValues.
Empty
;
10468
value = StringValues.
Empty
;
10486
value = StringValues.
Empty
;
10504
value = StringValues.
Empty
;
10522
value = StringValues.
Empty
;
10540
value = StringValues.
Empty
;
10558
value = StringValues.
Empty
;
10576
value = StringValues.
Empty
;
10594
value = StringValues.
Empty
;
10612
value = StringValues.
Empty
;
10630
value = StringValues.
Empty
;
10648
value = StringValues.
Empty
;
10666
value = StringValues.
Empty
;
10684
value = StringValues.
Empty
;
10702
value = StringValues.
Empty
;
10720
value = StringValues.
Empty
;
10738
value = StringValues.
Empty
;
10756
value = StringValues.
Empty
;
10774
value = StringValues.
Empty
;
10792
value = StringValues.
Empty
;
10810
value = StringValues.
Empty
;
10828
value = StringValues.
Empty
;
15539
return StringValues.
Empty
;
15568
return StringValues.
Empty
;
15597
return StringValues.
Empty
;
15625
value = StringValues.
Empty
;
15643
value = StringValues.
Empty
;
15661
value = StringValues.
Empty
;
15679
value = StringValues.
Empty
;
15697
value = StringValues.
Empty
;
15715
value = StringValues.
Empty
;
15733
value = StringValues.
Empty
;
15751
value = StringValues.
Empty
;
15769
value = StringValues.
Empty
;
15787
value = StringValues.
Empty
;
15805
value = StringValues.
Empty
;
15823
value = StringValues.
Empty
;
15841
value = StringValues.
Empty
;
15859
value = StringValues.
Empty
;
15877
value = StringValues.
Empty
;
15895
value = StringValues.
Empty
;
15913
value = StringValues.
Empty
;
15931
value = StringValues.
Empty
;
15949
value = StringValues.
Empty
;
15967
value = StringValues.
Empty
;
15985
value = StringValues.
Empty
;
16003
value = StringValues.
Empty
;
16021
value = StringValues.
Empty
;
16039
value = StringValues.
Empty
;
16057
value = StringValues.
Empty
;
16075
value = StringValues.
Empty
;
16093
value = StringValues.
Empty
;
16111
value = StringValues.
Empty
;
16129
value = StringValues.
Empty
;
16147
value = StringValues.
Empty
;
16165
value = StringValues.
Empty
;
16183
value = StringValues.
Empty
;
16201
value = StringValues.
Empty
;
16219
value = StringValues.
Empty
;
16237
value = StringValues.
Empty
;
16255
value = StringValues.
Empty
;
16273
value = StringValues.
Empty
;
16291
value = StringValues.
Empty
;
16309
value = StringValues.
Empty
;
16327
value = StringValues.
Empty
;
16345
value = StringValues.
Empty
;
16363
value = StringValues.
Empty
;
16381
value = StringValues.
Empty
;
16399
value = StringValues.
Empty
;
16417
value = StringValues.
Empty
;
16435
value = StringValues.
Empty
;
16453
value = StringValues.
Empty
;
16471
value = StringValues.
Empty
;
16489
value = StringValues.
Empty
;
16507
value = StringValues.
Empty
;
16525
value = StringValues.
Empty
;
16543
value = StringValues.
Empty
;
16561
value = StringValues.
Empty
;
16579
value = StringValues.
Empty
;
16597
value = StringValues.
Empty
;
16615
value = StringValues.
Empty
;
16633
value = StringValues.
Empty
;
16651
value = StringValues.
Empty
;
16669
value = StringValues.
Empty
;
16687
value = StringValues.
Empty
;
16705
value = StringValues.
Empty
;
16723
value = StringValues.
Empty
;
16741
value = StringValues.
Empty
;
16759
value = StringValues.
Empty
;
16777
value = StringValues.
Empty
;
16795
value = StringValues.
Empty
;
16813
value = StringValues.
Empty
;
16831
value = StringValues.
Empty
;
16849
value = StringValues.
Empty
;
16867
value = StringValues.
Empty
;
16885
value = StringValues.
Empty
;
16903
value = StringValues.
Empty
;
16921
value = StringValues.
Empty
;
16939
value = StringValues.
Empty
;
16957
value = StringValues.
Empty
;
16975
value = StringValues.
Empty
;
16993
value = StringValues.
Empty
;
17011
value = StringValues.
Empty
;
17029
value = StringValues.
Empty
;
17047
value = StringValues.
Empty
;
17065
value = StringValues.
Empty
;
17083
value = StringValues.
Empty
;
17101
value = StringValues.
Empty
;
17119
value = StringValues.
Empty
;
17137
value = StringValues.
Empty
;
17155
value = StringValues.
Empty
;
Microsoft.Extensions.Primitives (2)
StringValues.cs (2)
71
/// Returns <see langword="null"/> where <see cref="StringValues"/> has been initialized from an empty string array or is <see cref="StringValues.
Empty
"/>.
711
return Equals(this, StringValues.
Empty
);