Example #1
0
 /// <summary>
 /// Receives an unread incoming request for the specified device.
 /// </summary>
 protected bool ReceiveIncomingRequest(DeviceLogic deviceLogic, Connection conn,
                                       IncomingRequestArgs requestArgs)
 {
     try
     {
         deviceLogic.ReceiveIncomingRequest(conn, requestArgs);
         return(!requestArgs.HasError);
     }
     catch (Exception ex)
     {
         Log.WriteException(ex, Locale.IsRussian ?
                            "Ошибка при приёме входящего запроса КП {0}" :
                            "Error receiving incoming request for the device {0}", deviceLogic.Title);
         return(false);
     }
 }