public bool GateOperation(GateOperationNotify notify) { try { if (_Channel != null) { return(_Channel.GateOperation(notify)); } } catch (CommunicationException) { if (ParkAdapterConnectFail != null) { ParkAdapterConnectFail(this, EventArgs.Empty); } } catch (Exception ex) { Ralid.GeneralLibrary.ExceptionHandling.ExceptionPolicy.HandleException(ex); } return(false); }
public override void OperateGate(GateOperationNotify notify) { Packet p = _PacketCreater.CreateGateOperatePacket(Address, notify.Action); _CommComponent.SendPacket(p); }
public bool GateOperation(GateOperationNotify notify) { return(_Park.GateOperate(notify)); }
/// <summary> /// 操作道闸 /// </summary> /// <param name="notify"></param> public abstract void OperateGate(GateOperationNotify notify);