Opc.Ua.ServerTest.ServerTestClient.IndexPerfData C# (CSharp) Method

IndexPerfData() private method

Indexes the performance data.
private IndexPerfData ( PerfData data, double>.Dictionary table, string primaryKey ) : void
data PerfData
table double>.Dictionary
primaryKey string
return void
        private void IndexPerfData(
            PerfData data,
            Dictionary<string,Dictionary<string,double>> table,
            string primaryKey,
            params string[] secondaryKeys)
        {
            Dictionary<string,double> results = null;

            if (!table.TryGetValue(primaryKey, out results))
            {
                table[primaryKey] = results = new Dictionary<string,double>();
            }

            string secondaryKey = Utils.Format("{0}/{1}/{2}", secondaryKeys);  
            results[secondaryKey] = data.ElaspsedTime;
        }