コード例 #1
0
        public void Dispose()
        {
#if (NETSTANDARD1_5)
            BackingUdpClient?.Dispose();
#else
            BackingUdpClient?.Close();
#endif
        }
コード例 #2
0
        public void Dispose()
        {
            _cancellationTokenSource?.Cancel();
#if (NETSTANDARD1_5 || NETSTANDARD1_3)
            BackingUdpClient?.Dispose();
#else
            BackingUdpClient?.Close();
#endif
            _messageSubject?.OnCompleted();
        }
コード例 #3
0
        protected override void Cleanup()
        {
            _cancellationTokenSource.Cancel();

#if (NETSTANDARD1_5 || NETSTANDARD1_3)
            BackingUdpClient.Dispose();
#else
            BackingUdpClient.Close();
#endif
            base.Cleanup();
        }
コード例 #4
0
        protected override void Cleanup()
        {
            _cancellationTokenSource.Cancel();
            MulticastMemberships.Clear();

#if (NETSTANDARD1_5 || NETSTANDARD1_3)
            BackingUdpClient?.Dispose();
#else
            BackingUdpClient?.Close();
#endif

            _multicastAddress = null;
            _multicastPort    = 0;
            base.Cleanup();
        }