31 references to SupportedEncodings
FormatterWebSite (2)
StringInputFormatter.cs (2)
16SupportedEncodings.Add(Encoding.UTF8); 17SupportedEncodings.Add(Encoding.Unicode);
Microsoft.AspNetCore.Mvc.Core (8)
Formatters\SystemTextJsonInputFormatter.cs (2)
32SupportedEncodings.Add(UTF8EncodingWithoutBOM); 33SupportedEncodings.Add(UTF16EncodingLittleEndian);
Formatters\TextInputFormatter.cs (6)
77if (SupportedEncodings.Count == 0) 80nameof(SupportedEncodings)); 93for (int i = 0; i < SupportedEncodings.Count; i++) 97SupportedEncodings[i].WebName, 100return SupportedEncodings[i]; 119return SupportedEncodings[0];
Microsoft.AspNetCore.Mvc.Core.Test (11)
Formatters\TextInputFormatterTest.cs (10)
17formatter.SupportedEncodings.Add(Encoding.ASCII); 67formatter.SupportedEncodings.Add(Encoding.UTF32); 90formatter.SupportedEncodings.Add(Encoding.UTF32); 91formatter.SupportedEncodings.Add(Encoding.UTF8); 116formatter.SupportedEncodings.Add(Encoding.UTF32); 117formatter.SupportedEncodings.Add(Encoding.UTF8); 150formatter.SupportedEncodings.Add(Encoding.UTF32); 151formatter.SupportedEncodings.Add(Encoding.ASCII); 184formatter.SupportedEncodings.Add(Encoding.UTF8); 185formatter.SupportedEncodings.Add(Encoding.UTF32);
ModelBinding\Binders\BodyModelBinderTests.cs (1)
730SupportedEncodings.Add(Encoding.UTF8);
Microsoft.AspNetCore.Mvc.Formatters.Xml (4)
XmlDataContractSerializerInputFormatter.cs (2)
34SupportedEncodings.Add(UTF8EncodingWithoutBOM); 35SupportedEncodings.Add(UTF16EncodingLittleEndian);
XmlSerializerInputFormatter.cs (2)
33SupportedEncodings.Add(UTF8EncodingWithoutBOM); 34SupportedEncodings.Add(UTF16EncodingLittleEndian);
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (4)
XmlDataContractSerializerInputFormatterTest.cs (2)
129Assert.Contains(formatter.SupportedEncodings, i => i.WebName == "utf-8"); 130Assert.Contains(formatter.SupportedEncodings, i => i.WebName == "utf-16");
XmlSerializerInputFormatterTest.cs (2)
326Assert.Contains(formatter.SupportedEncodings, i => i.WebName == "utf-8"); 327Assert.Contains(formatter.SupportedEncodings, i => i.WebName == "utf-16");
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
NewtonsoftJsonInputFormatter.cs (2)
63SupportedEncodings.Add(UTF8EncodingWithoutBOM); 64SupportedEncodings.Add(UTF16EncodingLittleEndian);