private void OnDriverAdded(DriverAddedEvtArgs args) { EventHandler <DriverAddedEvtArgs> handler = this.DriverAdded; if (handler != null) { handler(this, args); } }
public void DriverAdded(object sender, DriverAddedEvtArgs evt) { lock (lockObj) { hasDriver = true; if (IsReadyToNotifyCloud()) { TaskQueue.EnqueueMedium(this.NotifyCloudOfExternalPort); } } }