Beispiel #1
0
 private void OniCamEventReceived(iCamEventArgs e)
 {
     if (iCamEventReceived != null)
     {
         iCamEventReceived.Invoke(this, e);
     }
 }
Beispiel #2
0
        private void OnICamEventReceived(object sender, iCamEventArgs args)
        {
            var camListener = ((iCamListener)sender);

            Execute(
                new iCamEventModel
            {
                Message  = args.OriginalMessage,
                HostId   = camListener.DeviceId,
                HostIp   = camListener.RemoteEndPoint.Address.ToString(),
                HostName = camListener.DeviceName
            });
        }