/// <summary> /// Watcher Event /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ManagementEventWatcher_EventArrived(object sender, EventArrivedEventArgs eventArrivedEventArgs) { // Hardware Event Define HardwareEvent hardwareEvent = new HardwareEvent { // Hardware Event Set Base = eventArrivedEventArgs }; // Signal Start OnSignal(sender, hardwareEvent); }
/// <summary> /// Signal On /// </summary> /// <param name="e">Hardware Event</param> protected virtual void OnSignal(object sender, HardwareEvent hardwareEvent) { // Signal Handler Signal?.Invoke(this, hardwareEvent); }