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.

Home Page:http://yortw.github.io/RSSDP/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Method when `SearchAsync` is ended with no response?

Bizarrus opened this issue · comments

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
}