public ProcessInfoStatisticsBase( IRtConnector connector, string processName = null) { this.tags = new Dictionary <string, StatisticsProps>(); this.connector = connector; if (processName == null) { processName = Process.GetCurrentProcess().ProcessName; if (processName.StartsWith("DeltaX.")) { processName = processName.Substring("DeltaX.".Length); } } this.processName = processName; this.prefixTagName = $"process_info/{this.processName}"; this.Startup = DateTime.Now; this.ConnectorStr = connector.ToString(); }