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

#if (NETSTANDARD1_5 || NETSTANDARD1_3)
            BackingUdpClient.Dispose();
#else
            BackingUdpClient.Close();
#endif
            base.Cleanup();
        }
        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();
        }