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))); }
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))); }