Yortw / RSSDP

Really Simple Service Discovery Protocol - a 100% .Net implementation of the SSDP protocol for publishing custom/basic devices, and discovering all device types on a network.
http://yortw.github.io/RSSDP/
MIT License
282 stars 66 forks source link

Method when `SearchAsync` is ended with no response? #119

Open Bizarrus opened 8 months ago

Bizarrus commented 8 months ago

DeviceAvailable calls only when devices found when using SearchAsync.

Serves RSSDP here a method, when the search is ended with no results, for sample:

 deviceLocator.DeviceAvailable       += OnDeviceResponse;
deviceLocator?.SearchAsync(delegate() {
// When search has ended & no results found
});

// [...]
private async static void OnDeviceResponse(object? sender, DeviceAvailableEventArgs e) {
// Devices Found
}