/// <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(); }
/// <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(); }
public virtual IReporter GetReporter(IMetrics metrics) { IReporter reporter = new RemoteReporter.Builder() .WithLoggerFactory(_loggerFactory) .WithMetrics(metrics) .WithSender(SenderConfig.GetSender()) .WithFlushInterval(FlushInterval.GetValueOrDefault(RemoteReporter.DefaultFlushInterval)) .WithMaxQueueSize(MaxQueueSize.GetValueOrDefault(RemoteReporter.DefaultMaxQueueSize)) .Build(); if (LogSpans) { IReporter loggingReporter = new LoggingReporter(_loggerFactory); reporter = new CompositeReporter(reporter, loggingReporter); } return(reporter); }
/// <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(); }