40 references to Parse
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageEncoder.cs (1)
201
MediaTypeHeaderValue parsedContentType = MediaTypeHeaderValue.
Parse
(contentType);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\TextMessageEncoder.cs (1)
215
MediaTypeHeaderValue parsedContentType = MediaTypeHeaderValue.
Parse
(contentType);
Microsoft.AspNetCore.Mvc.FunctionalTests (38)
BasicTests.cs (4)
45
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
65
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
88
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
109
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
ContentNegotiationTest.cs (17)
42
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/custom;charset=utf-8");
58
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
75
var expectedContentType = MediaTypeHeaderValue.
Parse
("text/plain;charset=utf-8");
91
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
108
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
124
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
147
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/xml;charset=utf-8");
172
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
234
var expectedContentType = MediaTypeHeaderValue.
Parse
(
251
var expectedContentType = MediaTypeHeaderValue.
Parse
(
269
var expectedContentType = MediaTypeHeaderValue.
Parse
(
286
var expectedContentType = MediaTypeHeaderValue.
Parse
(
303
var expectedContentType = MediaTypeHeaderValue.
Parse
(
321
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
339
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/xml;charset=utf-8");
488
var expectedMediaType = MediaTypeHeaderValue.
Parse
("application/vnd.example.contact+json; v=2; charset=utf-8");
506
var expectedMediaType = MediaTypeHeaderValue.
Parse
("application/vnd.example.contact+xml; v=2; charset=utf-8");
ErrorPageTests.cs (5)
60
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
95
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
116
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
136
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
154
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
HtmlGenerationTest.cs (5)
102
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
131
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
219
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
259
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
299
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
LinkGenerationTests.cs (1)
76
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
OutputFormatterTest.cs (2)
39
var expectedContentType = MediaTypeHeaderValue.
Parse
("text/plain;charset=utf-8");
57
var expectedContentType = MediaTypeHeaderValue.
Parse
("application/json;charset=utf-8");
RazorPagesTest.cs (1)
46
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
TagHelpersTest.cs (3)
51
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
88
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");
109
var expectedMediaType = MediaTypeHeaderValue.
Parse
("text/html; charset=utf-8");