AddRef() public méthode

public AddRef ( ) : void
Résultat void
        public unsafe SafeNativeOverlapped(SafeCloseSocket socketHandle, NativeOverlapped* handle)
            : this((IntPtr)handle)
        {
            _safeCloseSocket = socketHandle;

            GlobalLog.Print("SafeNativeOverlapped#" + Logging.HashString(this) + "::ctor(socket#" + Logging.HashString(socketHandle) + ")");
#if DEBUG
            _safeCloseSocket.AddRef();
#endif
        }
        public unsafe SafeNativeOverlapped(SafeCloseSocket socketHandle, NativeOverlapped* handle)
            : this((IntPtr)handle)
        {
            SocketHandle = socketHandle;

            if (NetEventSource.IsEnabled) NetEventSource.Info(this, $"socketHandle:{socketHandle}");

#if DEBUG
            SocketHandle.AddRef();
#endif
        }
        public unsafe SafeNativeOverlapped(SafeCloseSocket socketHandle, NativeOverlapped* handle)
            : this((IntPtr)handle)
        {
            SocketHandle = socketHandle;

            if (GlobalLog.IsEnabled)
            {
                GlobalLog.Print("SafeNativeOverlapped#" + LoggingHash.HashString(this) + "::ctor(socket#" + LoggingHash.HashString(socketHandle) + ")");
            }

#if DEBUG
            SocketHandle.AddRef();
#endif
        }
        public unsafe SafeNativeOverlapped(SafeCloseSocket socketHandle, NativeOverlapped *handle)
            : this((IntPtr)handle)
        {
            _socketHandle = socketHandle;

            if (NetEventSource.IsEnabled)
            {
                NetEventSource.Info(this, $"socketHandle:{socketHandle}");
            }

#if DEBUG
            _socketHandle.AddRef();
#endif
        }
Exemple #5
0
        public unsafe SafeNativeOverlapped(SafeCloseSocket socketHandle, NativeOverlapped *handle)
            : this((IntPtr)handle)
        {
            _safeCloseSocket = socketHandle;

            if (GlobalLog.IsEnabled)
            {
                GlobalLog.Print("SafeNativeOverlapped#" + LoggingHash.HashString(this) + "::ctor(socket#" + LoggingHash.HashString(socketHandle) + ")");
            }

#if DEBUG
            _safeCloseSocket.AddRef();
#endif
        }