Exemple #1
0
        /// <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, string configuration, IUAEncoder uaEncoder)
        {
            UDPWriterConfiguration _configuration = UDPWriterConfiguration.Parse(configuration);
            BinaryUDPPackageWriter _ret           = new BinaryUDPPackageWriter(_configuration.RemoteHostName, _configuration.UDPPortNumber, uaEncoder);

            return(_ret);
        }
Exemple #2
0
        /// <summary>
        /// Gets the new instance of <see cref="IMessageWriter" />.
        /// </summary>
        /// <param name="name">The name of thw writer.</param>
        /// <param name="configuration">The configuration of the object implementing the <see cref="T:UAOOI.Networking.SemanticData.MessageHandling.IMessageWriter" />.</param>
        /// <param name="uaEncoder">The encoder that provides methods to be used to encode OPC UA Built-in types.</param>
        /// <returns>An instance of <see cref="IMessageWriter" /> that provides functionality supporting writing the messages on the wire..</returns>
        IMessageWriter IMessageHandlerFactory.GetIMessageWriter(string name, string configuration, IUAEncoder uaEncoder)
        {
            UDPMessageHandlerSemanticEventSource.Log.GetIMessageHandler($"{nameof(IMessageHandlerFactory.GetIMessageWriter)}{{ name = {name}, configuration= {configuration} }}");
            UDPWriterConfiguration _configuration = UDPWriterConfiguration.Parse(configuration);
            BinaryUDPPackageWriter _ret           = new BinaryUDPPackageWriter(_configuration.RemoteHostName, _configuration.UDPPortNumber, uaEncoder);

            return(_ret);
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MyState"/> class.
 /// </summary>
 public MyState(BinaryUDPPackageWriter parent)
 {
     State    = HandlerState.Disabled;
     m_Parent = parent;
 }