コード例 #1
0
        internal ServerCounters GetCounters()
        {
            var counters = new ServerCounters(endpoint);

            interactive?.GetCounters(counters.Interactive);
            subscription?.GetCounters(counters.Subscription);
            return(counters);
        }
コード例 #2
0
 internal void Add(ServerCounters other)
 {
     if (other == null)
     {
         return;
     }
     Interactive.Add(other.Interactive);
     Subscription.Add(other.Subscription);
 }
コード例 #3
0
        internal ServerCounters GetCounters()
        {
            var counters = new ServerCounters(endpoint);
            var tmp      = interactive;

            if (tmp != null)
            {
                tmp.GetCounters(counters.Interactive);
            }
            tmp = subscription;
            if (tmp != null)
            {
                tmp.GetCounters(counters.Subscription);
            }
            return(counters);
        }
コード例 #4
0
 internal void Add(ServerCounters other)
 {
     if (other == null) return;
     this.Interactive.Add(other.Interactive);
     this.Subscription.Add(other.Subscription);
 }