Beispiel #1
0
 public Server(Factory factory, URL url) : base(factory, url)
 {
     this.m_items      = new Hashtable();
     this.m_attributes = new AttributeCollection();
     this.m_aggregates = new AggregateCollection();
     this.m_trends     = new TrendCollection();
 }
Beispiel #2
0
        public virtual object Clone()
        {
            TrendCollection trends = (TrendCollection)base.MemberwiseClone();

            trends.m_trends = new ArrayList();
            foreach (Trend trend in this.m_trends)
            {
                trends.m_trends.Add(trend.Clone());
            }
            return(trends);
        }
Beispiel #3
0
 public TrendCollection(TrendCollection items)
 {
     this.m_trends = new ArrayList();
     if (items != null)
     {
         foreach (Trend trend in items)
         {
             this.Add(trend);
         }
     }
 }
Beispiel #4
0
 protected Server(SerializationInfo info, StreamingContext context) : base(info, context)
 {
     this.m_items      = new Hashtable();
     this.m_attributes = new AttributeCollection();
     this.m_aggregates = new AggregateCollection();
     this.m_trends     = new TrendCollection();
     Trend[] trendArray = (Trend[])info.GetValue("Trends", typeof(Trend[]));
     if (trendArray != null)
     {
         foreach (Trend trend in trendArray)
         {
             trend.SetServer(this);
             this.m_trends.Add(trend);
         }
     }
 }