Cleanup & Fixes for .NET 5 (#309)
- [X] Fixes several bugs - [X] Updates more ordinal issues - [X] Cleans up the code a bit - [X] Turns classes static that should have been - [X] Changes TcpServer.Instances to a HashSet Bumps release version
This commit is contained in:
parent
4ad8811df2
commit
525cda5413
266 changed files with 1348 additions and 1800 deletions
|
|
@ -119,13 +119,13 @@ namespace Server.Misc
|
|||
try
|
||||
{
|
||||
using var client = new SmtpClient();
|
||||
await client.ConnectAsync(EmailConfiguration.EmailServer, EmailConfiguration.EmailPort, true);
|
||||
await client.ConnectAsync(EmailConfiguration.EmailServer, EmailConfiguration.EmailPort, true).ConfigureAwait(false);
|
||||
await client.AuthenticateAsync(
|
||||
EmailConfiguration.EmailServerUsername,
|
||||
EmailConfiguration.EmailServerPassword
|
||||
);
|
||||
await client.SendAsync(message);
|
||||
await client.DisconnectAsync(true);
|
||||
).ConfigureAwait(false);
|
||||
await client.SendAsync(message).ConfigureAwait(false);
|
||||
await client.DisconnectAsync(true).ConfigureAwait(false);
|
||||
return;
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -138,7 +138,7 @@ namespace Server.Misc
|
|||
|
||||
delay *= delay;
|
||||
|
||||
await Task.Delay(delay * 1000);
|
||||
await Task.Delay(delay * 1000).ConfigureAwait(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue