44 references to Text
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
ComponentsWebAssemblyApplicationBuilderExtensions.cs (1)
97AddMapping(contentTypeProvider, ".mjs", MediaTypeNames.Text.JavaScript);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (15)
Logging\AcceptanceTests.cs (12)
72context.Response.ContentType = MediaTypeNames.Text.Plain; 89context.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)] 283x.MediaTypeOptions.AddText(MediaTypeNames.Text.Plain); 599x.MediaTypeOptions.AddText(MediaTypeNames.Text.Plain);
Logging\HeaderReaderTests.cs (3)
22var headers = new HeaderDictionary(new Dictionary<string, StringValues> { [HeaderNames.Accept] = MediaTypeNames.Text.Plain }); 52[HeaderNames.AcceptCharset] = MediaTypeNames.Text.Xml, 63Assert.Equal($"<redacted:{MediaTypeNames.Text.Xml}>", redacted.Value);
Microsoft.Extensions.Http.Diagnostics.Tests (14)
Logging\HttpHeadersReaderTest.cs (1)
141responseContent.Headers.ContentType = new(MediaTypeNames.Text.Html);
Logging\HttpRequestReaderTest.cs (13)
63RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 64ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 189RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 190ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 263RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 264ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 336RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 394RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 395ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 465RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 466ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 532RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain }, 533ResponseBodyContentTypes = 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)
129mediaType = 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>