Exemple #1
0
        private void OnDriverAdded(DriverAddedEvtArgs args)
        {
            EventHandler <DriverAddedEvtArgs> handler = this.DriverAdded;

            if (handler != null)
            {
                handler(this, args);
            }
        }
Exemple #2
0
        public void DriverAdded(object sender, DriverAddedEvtArgs evt)
        {
            lock (lockObj)
            {
                hasDriver = true;

                if (IsReadyToNotifyCloud())
                {
                    TaskQueue.EnqueueMedium(this.NotifyCloudOfExternalPort);
                }
            }
        }