Example #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public NetServiceDocument()
     : base()
 {
     _packets     = new LogPacketCollection();
     _globalMeta  = new MetaDictionary();
     _history     = new ConnectionHistory();
     _credentials = new Dictionary <SecurityPrincipal, ICredentialObject>();
     SetupCollections();
 }
Example #2
0
        private void SetupCollections()
        {
            if (_history == null)
            {
                _history = new ConnectionHistory();
            }

            _packets.CollectionChanged += new NotifyCollectionChangedEventHandler(NetServiceDocument_CollectionChanged);
            _packets.FrameModified     += new EventHandler(_packets_FrameModified);
            _history.CollectionChanged += _history_CollectionChanged;
        }