Replace custom mono defines with toolchain-provided defines.
This commit is contained in:
committed by
Matthias Mailänder
parent
3e5666ca53
commit
a152bf7324
@@ -16,7 +16,7 @@ namespace OpenRA.Support
|
||||
{
|
||||
public class HttpClientFactory
|
||||
{
|
||||
#if !MONO
|
||||
#if NET5_0_OR_GREATER
|
||||
const int MaxConnectionPerServer = 20;
|
||||
static readonly TimeSpan ConnectionLifeTime = TimeSpan.FromMinutes(1);
|
||||
#endif
|
||||
@@ -30,7 +30,7 @@ namespace OpenRA.Support
|
||||
|
||||
static HttpMessageHandler GetHandler()
|
||||
{
|
||||
#if !MONO
|
||||
#if NET5_0_OR_GREATER
|
||||
return new SocketsHttpHandler
|
||||
{
|
||||
// https://github.com/dotnet/corefx/issues/26895
|
||||
|
||||
Reference in New Issue
Block a user