Make the platform benchmarks work again (#11537)
- Make it compile - Removed a few pubternal usages
This commit is contained in:
parent
e79fafc2e3
commit
6608b3b178
|
|
@ -3,7 +3,6 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Infrastructure;
|
|
||||||
|
|
||||||
namespace PlatformBenchmarks
|
namespace PlatformBenchmarks
|
||||||
{
|
{
|
||||||
|
|
@ -22,7 +21,7 @@ namespace PlatformBenchmarks
|
||||||
|
|
||||||
public static implicit operator AsciiString(string str) => new AsciiString(str);
|
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 static explicit operator string(AsciiString str) => str.ToString();
|
||||||
|
|
||||||
public bool Equals(AsciiString other) => ReferenceEquals(_data, other._data) || SequenceEqual(_data, other._data);
|
public bool Equals(AsciiString other) => ReferenceEquals(_data, other._data) || SequenceEqual(_data, other._data);
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Http.Internal;
|
using Microsoft.AspNetCore.Http;
|
||||||
using Microsoft.AspNetCore.Server.Kestrel.Core;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
namespace PlatformBenchmarks
|
namespace PlatformBenchmarks
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ using System.Diagnostics;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
|
||||||
namespace Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http
|
namespace PlatformBenchmarks
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Manages the generation of the date header value.
|
/// Manages the generation of the date header value.
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,6 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http;
|
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
namespace PlatformBenchmarks
|
namespace PlatformBenchmarks
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue