Strip out the rest of our pretty C#8 and C#9 niceness to bring back .NET framework support a little longer

This commit is contained in:
cinder
2022-11-20 00:46:46 -06:00
parent b73bca2c98
commit b85220d4e3
13 changed files with 109 additions and 74 deletions

View File

@@ -113,7 +113,10 @@ namespace OpenMetaverse.TestClient
}
// Otherwise, use the center of the named region
account.StartLocation ??= NetworkManager.StartLocation(args[3], 128, 128, 40);
if (account.StartLocation == null)
{
account.StartLocation = NetworkManager.StartLocation(args[3], 128, 128, 40);
}
}
}
@@ -137,8 +140,8 @@ namespace OpenMetaverse.TestClient
{
// Check if this client is already logged in
foreach (var c in Clients.Values.Where(
client => client.Self.FirstName == account.FirstName
&& client.Self.LastName == account.LastName))
tc => tc.Self.FirstName == account.FirstName
&& tc.Self.LastName == account.LastName))
{
Logout(c);
break;
@@ -146,8 +149,10 @@ namespace OpenMetaverse.TestClient
++PendingLogins;
TestClient client = new TestClient(this);
client.Settings.MFA_ENABLED = true;
TestClient client = new TestClient(this)
{
Settings = { MFA_ENABLED = true }
};
client.Network.LoginProgress +=
delegate(object sender, LoginProgressEventArgs e)
{