Esempio n. 1
0
        /// <summary>
        /// Gets a subscription to this NodeType.
        /// </summary>
        public NodeStateSubscriber GetSubscription(NodeInfo info)
        {
            NodeStateSubscriber subscriber = new NodeStateSubscriber(this, info);

            subscriber.Active = DetermineState(info);
            subscriptions.Add(subscriber);
            return(subscriber);
        }
Esempio n. 2
0
 public void Subscribe(NodeStateSubscriber subscriber)
 {
     stateSubscriptions.Add(subscriber);
     subscriber.StateChanged += new EventHandler <NodeStateChangedArgs>(StateChanged);
 }