Creates a new instance of a Device event.
Private Readonly _Dispatches the event to all subscribed handlers.
The sender of the event.
The serial number of the device.
Subscribes a handler to the event.
The handler function to subscribe to the event.
Subscribes an asynchronous handler to the event.
The asynchronous handler function to subscribe to the event.
Class representing a device event.