Example #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();
 }
Example #2
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);
         }
     }
 }