internal IViewData GetView(IViewName viewName, IClock clock, StatsCollectionState state) { lock (this.lck) { MutableViewData view = this.GetMutableViewData(viewName); return(view?.ToViewData(clock.Now, state)); } }
/** Returns a {@link ViewData} corresponding to the given {@link View.Name}. */ internal IViewData GetView(IViewName viewName, IClock clock, StatsCollectionState state) { lock (_lck) { MutableViewData view = GetMutableViewData(viewName); return(view == null ? null : view.ToViewData(clock.Now, state)); } }