Make the platform benchmarks work again (#11537)

- Make it compile
- Removed a few pubternal usages
This commit is contained in:
David Fowler 2019-06-24 23:50:27 -07:00 committed by GitHub
parent e79fafc2e3
commit 6608b3b178
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 6 deletions

View File

@ -3,7 +3,6 @@
using System;
using System.Text;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure;
namespace PlatformBenchmarks
{
@ -22,7 +21,7 @@ namespace PlatformBenchmarks
public static implicit operator AsciiString(string str) => new AsciiString(str);
public override string ToString() => HttpUtilities.GetAsciiStringNonNullCharacters(_data);
public override string ToString() => Encoding.ASCII.GetString(_data);
public static explicit operator string(AsciiString str) => str.ToString();
public bool Equals(AsciiString other) => ReferenceEquals(_data, other._data) || SequenceEqual(_data, other._data);

View File

@ -4,8 +4,7 @@
using System;
using System.Net;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http.Internal;
using Microsoft.AspNetCore.Server.Kestrel.Core;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Configuration;
namespace PlatformBenchmarks

View File

@ -7,7 +7,7 @@ using System.Diagnostics;
using System.Text;
using System.Threading;
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
namespace PlatformBenchmarks
{
/// <summary>
/// Manages the generation of the date header value.

View File

@ -4,7 +4,6 @@
using System;
using System.Net;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;
using Microsoft.Extensions.Configuration;
namespace PlatformBenchmarks