Throw PlatformNotSupportedException on big-endian platforms

This commit is contained in:
Stephen Halter 2016-10-27 15:29:29 -07:00
parent d475d41f71
commit 5e97c63467
1 changed files with 5 additions and 0 deletions

View File

@ -59,6 +59,11 @@ namespace Microsoft.AspNetCore.Server.Kestrel
{
try
{
if (!BitConverter.IsLittleEndian)
{
throw new PlatformNotSupportedException("Kestrel does not support big-endian architectures.");
}
ValidateOptions();
if (_disposables != null)