Zeroconf
Zeroconf copied to clipboard
ResolveAsync ObjectDisposedExceptions
I'm working in C# .NET5 WPF using ResolveAsync to find network devices. It always finds all devices but takes a while to complete because of these exceptions. For every device it finds, another exception occurs. If I have no devices attached I will still see the 3 exceptions listed below. I have no idea where to start with this ! Ideally, I would like to solve it because ResolveAsync is pretty fast when it isn't pausing due to these exceptions
var responses = await ZeroconfResolver.ResolveAsync("_ourhost._tcp.local.", new TimeSpan(0, 0, 2), 4, 500,callback);
Exception thrown: 'System.ObjectDisposedException' in System.Net.Sockets.dll Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll Exception thrown: 'System.ObjectDisposedException' in System.Private.CoreLib.dll
I've been trying to figure out how to solve this for many months now and I just don't understand what it happening. If anyone can shed some light on this I would greatly appreciate it. Can I ignore these? Do they slow down the Resolve? Please help.