Ejemplo n.º 1
0
 internal ConnectionPoint(ConnectionPointContainer container, IEventSource <SinkType> source)
 {
     if (null == container)
     {
         throw new ArgumentNullException("container");
     }
     if (null == source)
     {
         throw new ArgumentNullException("source");
     }
     this.container = container;
     this.source    = source;
     sinks          = new Dictionary <uint, SinkType>();
     nextCookie     = 1;
 }
Ejemplo n.º 2
0
        public ConnectionPoint(ConnectionPointContainer container, IEventSource <TSink> source)
        {
            if (null == container)
            {
                throw new ArgumentNullException("container");
            }
            if (null == source)
            {
                throw new ArgumentNullException("source");
            }

            this.sinks      = new Dictionary <uint, TSink>();
            this.container  = container;
            this.source     = source;
            this.nextCookie = 1;
        }