42 public abstract void Trace(
string message, [CallerMemberName]
string memberName =
null);
48 Trace($
"{this}. SslProtocol:{sslStream.SslProtocol}, NegotiatedApplicationProtocol:{sslStream.NegotiatedApplicationProtocol}, NegotiatedCipherSuite:{sslStream.NegotiatedCipherSuite}, CipherAlgorithm:{sslStream.CipherAlgorithm}, CipherStrength:{sslStream.CipherStrength}, HashAlgorithm:{sslStream.HashAlgorithm}, HashStrength:{sslStream.HashStrength}, KeyExchangeAlgorithm:{sslStream.KeyExchangeAlgorithm}, KeyExchangeStrength:{sslStream.KeyExchangeStrength}, LocalCertificate:{sslStream.LocalCertificate}, RemoteCertificate:{sslStream.RemoteCertificate}",
"TraceConnection");
52 Trace($
"{this}",
"TraceConnection");
70 return (uint)(c - 48) <= 9u;
82 return 100 * (b - 48) + 10 * (b2 - 48) + (b3 - 48);
91 _ =
task.AsTask().Exception;
102 if (
task.IsCompleted)
106 LogFaulted(
this,
task);
121 connection.
Trace($
"Exception from asynchronous processing: {innerException}",
"LogExceptions");
static bool EqualsOrdinalAscii(string left, ReadOnlySpan< byte > right)
long GetLifetimeTicks(long nowTicks)
string GetResponseHeaderValueWithCaching(HeaderDescriptor descriptor, ReadOnlySpan< byte > value, Encoding valueEncoding)
void Trace(string message, [CallerMemberName] string memberName=null)
void TraceConnection(Stream stream)
void LogExceptions(Task task)
long GetIdleTicks(long nowTicks)
static int ParseStatusCode(ReadOnlySpan< byte > value)
string _lastServerHeaderValue
virtual bool CheckUsabilityOnScavenge()
string _lastDateHeaderValue
readonly long _creationTickCount
static void IgnoreExceptions(ValueTask< int > task)
static bool IsDigit(byte c)
static readonly System.Net.NetEventSource Log
static string Format(string resourceFormat, object p1)
static string net_http_invalid_response_status_code
static TaskScheduler Default
AggregateException? Exception
static CancellationToken None