Exemple #1
0
        /// <summary>
        /// Create new instance of <see cref="UdpDiscoverySubscriber"/>
        /// </summary>
        /// <param name="udpConnection"></param>
        public UdpDiscoverySubscriber(UdpPubSubConnection udpConnection) : base(udpConnection)
        {
            m_metadataWriterIdsToSend = new List <ushort>();

            m_intervalRunner = new IntervalRunner(udpConnection.PubSubConnectionConfiguration.Name,
                                                  kInitialRequestInterval, CanPublish, SendDiscoveryRequestDataSetMetaData);
        }
 /// <summary>
 /// Create new instance of <see cref="MqttMetadataPublisher"/>.
 /// </summary>
 internal MqttMetadataPublisher(IMqttPubSubConnection parentConnection, WriterGroupDataType writerGroup, DataSetWriterDataType dataSetWriter,
                                double metaDataUpdateTime)
 {
     m_parentConnection = parentConnection;
     m_writerGroup      = writerGroup;
     m_dataSetWriter    = dataSetWriter;
     m_intervalRunner   = new IntervalRunner(dataSetWriter.DataSetWriterId, metaDataUpdateTime, CanPublish, PublishMessage);
 }