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