Exemplo n.º 1
0
 /// <summary>
 /// Constructor
 /// </summary>
 public NetServiceDocument()
     : base()
 {
     _packets     = new LogPacketCollection();
     _globalMeta  = new MetaDictionary();
     _history     = new ConnectionHistory();
     _credentials = new Dictionary <SecurityPrincipal, ICredentialObject>();
     SetupCollections();
 }
Exemplo n.º 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;
        }