A base class for classes that implement an OPC COM specification.
상속: IDisposable
예제 #1
0
        /// <summary>
        /// Creates a new event subscription.
        /// </summary>
        public ComAe2Subscription CreateSubscription()
        {
            ThrowIfNotConnected();

            ComAe2Subscription subscription = new ComAe2Subscription(this, m_configuration, m_mapper, m_browser, m_conditionManager);

            lock (m_subscriptions)
            {
                m_subscriptions.Add(subscription);
            }

            return(subscription);
        }
예제 #2
0
 /// <summary>
 /// Called when a subscription is deleted.
 /// </summary>
 public void SubscriptionDeleted(ComAe2Subscription subscription)
 {
     lock (m_subscriptions)
     {
         for (int ii = 0; ii < m_subscriptions.Count; ii++)
         {
             if (Object.ReferenceEquals(subscription, m_subscriptions[ii]))
             {
                 m_subscriptions.RemoveAt(ii);
                 break;
             }
         }
     }
 }
예제 #3
0
 /// <summary>
 /// Called when a subscription is deleted.
 /// </summary>
 public void SubscriptionDeleted(ComAe2Subscription subscription)
 {
     lock (m_subscriptions)
     {
         for (int ii = 0; ii < m_subscriptions.Count; ii++)
         {
             if (Object.ReferenceEquals(subscription, m_subscriptions[ii]))
             {
                 m_subscriptions.RemoveAt(ii);
                 break;
             }
         }
     }
 }
예제 #4
0
        /// <summary>
        /// Creates a new event subscription.
        /// </summary>
        public ComAe2Subscription CreateSubscription()
        {
            ThrowIfNotConnected();

            ComAe2Subscription subscription = new ComAe2Subscription(this, m_configuration, m_mapper, m_browser, m_conditionManager);

            lock (m_subscriptions)
            {
                m_subscriptions.Add(subscription);
            }

            return subscription;
        }