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

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

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