static StorageEventManager() { StorageEventListener storageEventListener = new StorageEventListener(); EventSink.AddEventProcessor(EventCategory.Storage, storageEventListener); EventSink.AddEventListener(EventCategory.Storage, storageEventListener); }
static NetworkChange() { NetworkChangeListener networkChangeListener = new NetworkChangeListener(); EventSink.AddEventProcessor(EventCategory.Network, networkChangeListener); EventSink.AddEventListener(EventCategory.Network, networkChangeListener); }
private BluetoothHost(BluetoothHostConfiguration configuration, GattService[] services) { this.configuration = configuration; Services = services; // Create Indices int serviceIndex = 0; foreach (GattService service in Services) { service.Index = serviceIndex++; int characteristicIndex = 0; foreach (GattCharacteristic characteristic in service.Characteristics) { characteristic.ServiceIndex = service.Index; characteristic.Index = characteristicIndex++; } } EventSink.AddEventListener(OS.BluetoothEventCategory, this); }
public HighResEventListener() { EventSink.AddEventProcessor(EventCategory.Custom, this); EventSink.AddEventListener(EventCategory.Custom, this); }
public HighResEventListener() { EventSink.AddEventProcessor(EventCategory.HighResolutionTimer, this); EventSink.AddEventListener(EventCategory.HighResolutionTimer, this); }
public GpioPinEventListener() { EventSink.AddEventProcessor(EventCategory.Gpio, this); EventSink.AddEventListener(EventCategory.Gpio, this); }
public CanControllerEventListener() { EventSink.AddEventProcessor(EventCategory.Can, this); EventSink.AddEventListener(EventCategory.Can, this); }
public SerialDeviceEventListener() { EventSink.AddEventProcessor(EventCategory.SerialDevice, this); EventSink.AddEventListener(EventCategory.SerialDevice, this); }
//WiFiAdapter wifiAdapter; public WiFiEventListener() { EventSink.AddEventProcessor(EventCategory.WiFi, this); EventSink.AddEventListener(EventCategory.WiFi, this); }