Ejemplo n.º 1
0
        public AppMinuteStat GetOrAdd(DateTime date, Int32 appId, out String key)
        {
            var model = new TraceStatModel {
                Time = date, AppId = appId
            };

            key = model.Key;
            return(GetOrAdd(key, k => AppMinuteStat.FindOrAdd(model)));
        }
Ejemplo n.º 2
0
        public TraceHourStat GetOrAdd(DateTime date, Int32 appId, String name, out String key)
        {
            var model = new TraceStatModel {
                Time = date, AppId = appId, Name = name
            };

            key = model.Key;
            return(GetOrAdd(key, k => TraceHourStat.FindOrAdd(model)));
        }