Example #1
0
 protected void RaiseNewDeviceFound(DeviceFoundEventArgs args)
 {
     if (NewDeviceFound != null)
     {
         NewDeviceFound(this, args);
     }
 }
Example #2
0
        void Transport_NewDeviceFound(object sender, DeviceFoundEventArgs e)
        {
            RdmRouteBinding binding = Transports.FirstOrDefault <RdmRouteBinding>(item => item.Transport == sender);

            if (binding != null)
            {
                RegisterDevice(e.Id, binding);
            }

            RaiseNewDeviceFound(e);
        }