/// <summary> /// Gets the new instance of <see cref="IMessageReader"/>. /// </summary> /// <param name="name">The name of the reader.</param> /// <param name="configuration">The configuration of the reader.</param> /// <returns>An instance of <see cref="IMessageReader"/>.</returns> IMessageReader IMessageHandlerFactory.GetIMessageReader(string name, MessageChannelConfiguration configuration, IUADecoder uaDecoder) { BinaryUDPPackageReader _ret = new BinaryUDPPackageReader(uaDecoder, UDPPortNumber, m_Trace, m_ParentViewModel); m_ToDispose(_ret); if (Properties.Settings.Default.JoinMulticastGroup) _ret.MulticastGroup = IPAddress.Parse(Properties.Settings.Default.DefaultMulticastGroup); _ret.ReuseAddress = Properties.Settings.Default.ReuseAddress; return _ret; }
/// <summary> /// Gets the new instance of <see cref="IMessageReader"/>. /// </summary> /// <param name="name">The name of the reader.</param> /// <param name="configuration">The configuration of the reader.</param> /// <returns>An instance of <see cref="IMessageReader"/>.</returns> IMessageReader IMessageHandlerFactory.GetIMessageReader(string name, MessageChannelConfiguration configuration, IUADecoder uaDecoder) { BinaryUDPPackageReader _ret = new BinaryUDPPackageReader(uaDecoder, UDPPortNumber, m_Trace, m_ParentViewModel); m_ToDispose(_ret); if (Properties.Settings.Default.JoinMulticastGroup) { _ret.MulticastGroup = IPAddress.Parse(Properties.Settings.Default.DefaultMulticastGroup); } _ret.ReuseAddress = Properties.Settings.Default.ReuseAddress; return(_ret); }
/// <summary> /// Initializes a new instance of the <see cref="MyState"/> class. /// </summary> public MyState(BinaryUDPPackageReader parent) { State = HandlerState.Disabled; m_Parent = parent; }