Ignore:
Timestamp:
Aug 1, 2022, 12:26:44 PM (2 years ago)
Author:
alloc
Message:

Made SpaceWizards.HttpListener compilable against .NET 4.8 with preprocessor define UNITY_NETFRAMEWORK

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements2/SpaceWizards.HttpListener/src/System/Net/HttpListenerException.cs

    r376 r377  
    11// Licensed to the .NET Foundation under one or more agreements.
    22// The .NET Foundation licenses this file to you under the MIT license.
     3
     4// ReSharper disable RedundantUsingDirective
     5// ReSharper disable VirtualMemberCallInConstructor
    36
    47using System;
     
    1316    public class HttpListenerException : Win32Exception
    1417    {
     18#if !UNITY_NETFRAMEWORK
    1519        public HttpListenerException() : base(Marshal.GetLastPInvokeError())
    1620        {
    1721            if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"{NativeErrorCode}:{Message}");
    1822        }
    19 
     23#endif
     24       
    2025        public HttpListenerException(int errorCode) : base(errorCode)
    2126        {
Note: See TracChangeset for help on using the changeset viewer.