public EventTarget( XNode node, IEventFactory events, ITraceService trace, IInvoker invoker) : base(node) { Contract.Requires <ArgumentNullException>(node != null); Contract.Requires <ArgumentNullException>(events != null); Contract.Requires <ArgumentNullException>(trace != null); Contract.Requires <ArgumentNullException>(invoker != null); this.node = node; this.events = events; this.trace = trace; this.invoker = invoker; this.state = node.AnnotationOrCreate <EventTargetState>(); }