public void Dispose() { #if (NETSTANDARD1_5) BackingUdpClient?.Dispose(); #else BackingUdpClient?.Close(); #endif }
public void Dispose() { _cancellationTokenSource?.Cancel(); #if (NETSTANDARD1_5 || NETSTANDARD1_3) BackingUdpClient?.Dispose(); #else BackingUdpClient?.Close(); #endif _messageSubject?.OnCompleted(); }
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(); }