public HTriggers(bool isDetecting) { DetectOutgoing = isDetecting; DetectIncoming = isDetecting; IncomingHeaders = new Incoming(); OutgoingHeaders = new Outgoing(); _inPrevious = new Stack<HMessage>(); _outPrevious = new Stack<HMessage>(); _inLocked = new Dictionary<ushort, Action<InterceptedEventArgs>>(); _outLocked = new Dictionary<ushort, Action<InterceptedEventArgs>>(); _inAttaches = new Dictionary<ushort, EventHandler<InterceptedEventArgs>>(); _outAttaches = new Dictionary<ushort, EventHandler<InterceptedEventArgs>>(); }
static Incoming() { Global = new Incoming(); _serializer = new DataContractJsonSerializer(typeof(Incoming)); }
static Incoming() { _global = new Incoming(); _incomingType = typeof(Incoming); _serializer = new DataContractJsonSerializer(_incomingType); }