private void CreateNew(string cc) { CounterCategoryInfoOld counterCategoryInfo = new CounterCategoryInfoOld(cc, GetNextCategoryId()); _catInfo.Add(cc, counterCategoryInfo); CountersDatabase.Instance.SaveCounterCategoryInfo(counterCategoryInfo); }
public string Map(string cc, string cn, string cs, string ci, string ced) { CounterCategoryInfoOld counterCategory = _store.GetByName(cc); CounterNameInfoOld counter = counterCategory.GetCounter(cn); CounterSourceInfo counterSource = counter.GetSource(cs); CounterInstanceInfo counterInstance = GetInstance(counterCategory, counter, ci); CounterExtDataInfo counterExtData = GetExtData(counterCategory, counter, ced); return(String.Join("|", "s" + counterSource.Id, "i" + counterInstance.Id, "ed" + counterExtData.Id)); }