コード例 #1
0
 internal IViewData GetView(IViewName viewName, IClock clock, StatsCollectionState state)
 {
     lock (this.lck)
     {
         MutableViewData view = this.GetMutableViewData(viewName);
         return(view?.ToViewData(clock.Now, state));
     }
 }
コード例 #2
0
 /** 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));
     }
 }