Beispiel #1
0
 /// <summary>
 /// Adds the options to the list.
 /// </summary>
 public override void AddToOptionList(OptionList options)
 {
     base.AddToOptionList(options);
     options["UseStorageConn"] = UseStorageConn.ToLowerString();
     options["Connection"]     = Connection;
     options["MaxQueueSize"]   = MaxQueueSize.ToString();
     options["PartitionSize"]  = PartitionSize.ToString();
 }
Beispiel #2
0
 /// <summary>
 /// Adds the options to the list.
 /// </summary>
 public void AddToOptionList(OptionList options)
 {
     options.Clear();
     options["UseDefaultConn"]   = UseDefaultConn.ToLowerString();
     options["Connection"]       = Connection;
     options["MaxQueueSize"]     = MaxQueueSize.ToString();
     options["MaxCurDataAge"]    = MaxCurDataAge.ToString();
     options["DataLifetime"]     = DataLifetime.ToString();
     options["ClientLogEnabled"] = ClientLogEnabled.ToLowerString();
     options["DeviceFilter"]     = DeviceFilter.ToRangeString();
 }
Beispiel #3
0
        /// <summary>
        /// Adds the options to the list.
        /// </summary>
        public void AddToOptionList(OptionList options, bool clearList = true)
        {
            if (clearList)
            {
                options.Clear();
            }

            options["RootTopic"]      = RootTopic;
            options["UndefinedValue"] = UndefinedValue;
            options["PublishFormat"]  = PublishFormat;
            options["QosLevel"]       = QosLevel.ToString();
            options["Retain"]         = Retain.ToString();
            options["MaxQueueSize"]   = MaxQueueSize.ToString();
            options["DataLifetime"]   = DataLifetime.ToString();
            options["DetailedLog"]    = DetailedLog.ToString();
            options["DeviceFilter"]   = DeviceFilter.ToRangeString();
        }