/// <summary> /// Initializes the freeform transceiver. /// </summary> /// <returns>True if succeeded; otherwise false.</returns> private bool Initialize_FreeformTransceiver() { using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "Initialize_FreeformTransceiver")) { bool result = false; try { _ffTranceiver = FFTransceiverFactory.Create(new FFTransceiverArgs { LocalIpAddress = string.Empty, InterfaceIpAddress = _storeComm.InterfaceIp, MulticastIpAddress = _storeComm.MulticastIp, ReceivePortNo = _storeComm.ReceivePortNo, SendPortNo = _storeComm.TransmitPortNo, }, this.Executor); _ffTranceiver.Receive += OnTransceiver_Receive; result = true; } catch (Exception ex) { method.Exception(ex); } return result; } }
/// <summary> /// Initializes the freeform transceiver. /// </summary> /// <returns>True if succeeded; otherwise false.</returns> private bool Initialize_FreeformTransceiver() { using (ILogMethod method = Log.LogMethod(this.DYN_MODULE_NAME, "Initialize_FreeformTransceiver")) { bool result = false; try { _ffTranceiver = FFTransceiverFactory.Create(new FFTransceiverArgs { LocalIpAddress = string.Empty, InterfaceIpAddress = _storeComm.InterfaceIp, MulticastIpAddress = _storeComm.MulticastIp, ReceivePortNo = _storeComm.ReceivePortNo, SendPortNo = _storeComm.TransmitPortNo, }, this.Executor); _ffTranceiver.Receive += OnTransceiver_Receive; result = true; } catch (Exception ex) { method.Exception(ex); } return(result); } }