44 references to Text
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
97
AddMapping(contentTypeProvider, ".mjs", MediaTypeNames.
Text
.JavaScript);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (15)
Logging\AcceptanceTests.cs (12)
72
context.Response.ContentType = MediaTypeNames.
Text
.Plain;
89
context.Response.ContentType = MediaTypeNames.
Text
.Plain;
154
[InlineData(MediaTypeNames.
Text
.Plain, true)]
155
[InlineData(MediaTypeNames.
Text
.Html, false)]
156
[InlineData(MediaTypeNames.
Text
.RichText, false)]
157
[InlineData(MediaTypeNames.
Text
.Xml, false)]
211
[InlineData(MediaTypeNames.
Text
.Plain, true)]
212
[InlineData(MediaTypeNames.
Text
.Html, true)]
213
[InlineData(MediaTypeNames.
Text
.RichText, true)]
214
[InlineData(MediaTypeNames.
Text
.Xml, true)]
283
x.MediaTypeOptions.AddText(MediaTypeNames.
Text
.Plain);
599
x.MediaTypeOptions.AddText(MediaTypeNames.
Text
.Plain);
Logging\HeaderReaderTests.cs (3)
22
var headers = new HeaderDictionary(new Dictionary<string, StringValues> { [HeaderNames.Accept] = MediaTypeNames.
Text
.Plain });
52
[HeaderNames.AcceptCharset] = MediaTypeNames.
Text
.Xml,
63
Assert.Equal($"<redacted:{MediaTypeNames.
Text
.Xml}>", redacted.Value);
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\HttpHeadersReaderTest.cs (1)
141
responseContent.Headers.ContentType = new(MediaTypeNames.
Text
.Html);
Logging\HttpRequestReaderTest.cs (13)
63
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
64
ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
189
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
190
ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
263
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
264
ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
336
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
394
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
395
ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
465
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
466
ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
532
RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
533
ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.
Text
.Plain },
System.Memory.Data (1)
System\BinaryData.cs (1)
216
/// <param name="mediaType">MIME type of this data, e.g. <see cref="MediaTypeNames.
Text
.Plain"/>.</param>
System.Net.Mail (13)
System\Net\Mail\Attachment.cs (1)
129
mediaType = MediaTypeNames.
Text
.Plain;
System\Net\Mail\MailMessage.cs (2)
326
_bodyView = AlternateView.CreateAlternateViewFromString(_body, _bodyEncoding, (_isBodyHtml ? MediaTypeNames.
Text
.Html : null));
336
_bodyView = AlternateView.CreateAlternateViewFromString(_body, _bodyEncoding, (_isBodyHtml ? MediaTypeNames.
Text
.Html : null));
System\Net\Mime\MediaTypeNames.cs (10)
135
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in CSS format.</summary>
138
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in CSV format.</summary>
141
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in event stream format.</summary>
144
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in HTML format.</summary>
147
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in JavaScript format.</summary>
150
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in Markdown format.</summary>
153
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in plain text format.</summary>
156
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in Rich Text Format (RTF).</summary>
159
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in Rich Text Format (RTF).</summary>
162
/// <summary>Specifies that the <see cref="MediaTypeNames.
Text
"/> data is in XML format.</summary>