public IMessageReader GetIMessageReader(string name, MessageChannelConfiguration configuration, IUADecoder uaDecoder)
 {
     Assert.AreEqual("UDP", name);
     Assert.IsNull(configuration);
     Assert.IsNotNull(uaDecoder);
     return MyMessageReader;
 }
 /// <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="IMessageWriter"/>.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="configuration">The configuration.</param>
 /// <remarks>It is intentionally not implemented</remarks>
 /// <returns>An instance of <see cref="IMessageWriter"/>.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 IMessageWriter IMessageHandlerFactory.GetIMessageWriter(string name, MessageChannelConfiguration configuration, IUAEncoder uaEncoder)
 {
     throw new NotImplementedException();
 }
 internal MessageChannelConfigurationWrapper(MessageChannelConfiguration configuration)
 {
     m_configuration = configuration;
 }
 /// <summary>
 /// Gets the new instance of <see cref="IMessageWriter"/>.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="configuration">The configuration.</param>
 /// <remarks>It is intentionally not implemented</remarks>
 /// <returns>An instance of <see cref="IMessageWriter"/>.</returns>
 /// <exception cref="System.NotImplementedException"></exception>
 IMessageWriter IMessageHandlerFactory.GetIMessageWriter(string name, MessageChannelConfiguration configuration, IUAEncoder uaEncoder)
 {
     throw new NotImplementedException();
 }
示例#6
0
 public IMessageWriter GetIMessageWriter(string name, MessageChannelConfiguration configuration, IUAEncoder uaEncoder)
 {
     throw new NotImplementedException();
 }
示例#7
0
 public IMessageReader GetIMessageReader(string name, MessageChannelConfiguration configuration, IUADecoder uaDecoder)
 {
     return(new MR());
 }
 public MessageHandling.IMessageWriter GetIMessageWriter(string name, MessageChannelConfiguration configuration, IUAEncoder uaEncoder)
 {
     Assert.AreEqual("UDP", name);
     Assert.IsNull(configuration);
     return MessageWriter;
 }
 public MessageHandling.IMessageReader GetIMessageReader(string name, MessageChannelConfiguration configuration, IUADecoder uaDecoder)
 {
     throw new NotImplementedException();
 }
 /// <summary>
 /// Gets the i message writer.
 /// </summary>
 /// <param name="name">The name.</param>
 /// <param name="configuration">The configuration.</param>
 /// <returns>An instance of <see cref="IMessageWriter"/>.</returns>
 IMessageWriter IMessageHandlerFactory.GetIMessageWriter(string name, MessageChannelConfiguration configuration, IUAEncoder uaEncoder)
 {
     BinaryUDPPackageWriter _ret = new BinaryUDPPackageWriter(RemoteHostName, UDPPortNumber, m_Trace, m_ViewModel, uaEncoder);
       m_ToDispose(_ret);
       return _ret;
 }
 public IMessageWriter GetIMessageWriter(string name, MessageChannelConfiguration configuration, IUAEncoder uaEncoder)
 {
     throw new NotImplementedException();
 }
 public IMessageReader GetIMessageReader(string name, MessageChannelConfiguration configuration, IUADecoder uaDecoder)
 {
     return new MR();
 }