Updates to .NET Core 3.1 & Cleanup (#79)

This commit is contained in:
Kamron Batman 2020-01-19 12:47:34 -08:00 • committed by GitHub
parent 57b14ad690
commit de74218b89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 100 additions and 188 deletions

View file

@ -71,10 +71,7 @@ namespace Server
if (!m_PrioritySet)
{
if (count == 1)
m_Priority = ComputePriority(delay);
else
m_Priority = ComputePriority(interval);
m_Priority = ComputePriority(count == 1 ? delay : interval);
m_PrioritySet = true;
}
@ -130,13 +127,8 @@ namespace Server
public virtual bool DefRegCreation => true;
private static string FormatDelegate(Delegate callback)
{
if (callback == null)
return "null";
return $"{callback.Method.DeclaringType?.FullName ?? ""}.{callback.Method.Name}";
}
private static string FormatDelegate(Delegate callback) =>
callback == null ? "null" : $"{callback.Method.DeclaringType?.FullName ?? ""}.{callback.Method.Name}";
public static void DumpInfo(TextWriter tw)
{