/// <summary> /// Writes settings into a property bag. /// </summary> /// <param name="properties"></param> public void WriteProperties(Dictionary<string, string> properties) { if (EventHubSettingsType != null) properties.Add(EventHubConfigTypeName, EventHubSettingsType.AssemblyQualifiedName); if (CheckpointerSettingsType != null) properties.Add(CheckpointerSettingsTypeName, CheckpointerSettingsType.AssemblyQualifiedName); if (cacheSizeMb.HasValue) { properties.Add(CacheSizeMbName, CacheSizeMb.ToString(CultureInfo.InvariantCulture)); } if (dataMinTimeInCache.HasValue) { properties.Add(DataMinTimeInCacheName, DataMinTimeInCache.ToString()); } if (dataMaxAgeInCache.HasValue) { properties.Add(DataMaxAgeInCacheName, DataMaxAgeInCache.ToString()); } if (AveragingCachePressureMonitorFlowControlThreshold.HasValue) { properties.Add(AveragingCachePressureMonitorFlowControlThresholdName, AveragingCachePressureMonitorFlowControlThreshold.ToString()); } else { properties.Add(AveragingCachePressureMonitorFlowControlThresholdName, CachePressureMonitorOffThreshold.ToString()); } if (SlowConsumingMonitorPressureWindowSize.HasValue) { properties.Add(SlowConsumingMonitorPressureWindowSizeName, SlowConsumingMonitorPressureWindowSize.ToString()); } if (SlowConsumingMonitorFlowControlThreshold.HasValue) { properties.Add(SlowConsumingMonitorFlowControlThresholdName, SlowConsumingMonitorFlowControlThreshold.ToString()); } }
/// <summary> /// Writes settings into a property bag. /// </summary> /// <param name="properties"></param> public void WriteProperties(Dictionary <string, string> properties) { if (EventHubSettingsType != null) { properties.Add(EventHubConfigTypeName, EventHubSettingsType.AssemblyQualifiedName); } if (CheckpointerSettingsType != null) { properties.Add(CheckpointerSettingsTypeName, CheckpointerSettingsType.AssemblyQualifiedName); } if (cacheSizeMb.HasValue) { properties.Add(CacheSizeMbName, CacheSizeMb.ToString(CultureInfo.InvariantCulture)); } if (dataMinTimeInCache.HasValue) { properties.Add(DataMinTimeInCacheName, DataMinTimeInCache.ToString()); } if (dataMaxAgeInCache.HasValue) { properties.Add(DataMaxAgeInCacheName, DataMaxAgeInCache.ToString()); } }
public virtual void WriteProperties(Dictionary <string, string> properties) { properties.Add(StatisticMonitorWriteIntervalName, StatisticMonitorWriteInterval.ToString()); properties.Add(DataMinTimeInCacheName, DataMinTimeInCache.ToString()); properties.Add(DataMaxAgeInCacheName, DataMaxAgeInCache.ToString()); }