static StorageEventManager()
        {
            StorageEventListener storageEventListener = new StorageEventListener();

            EventSink.AddEventProcessor(EventCategory.Storage, storageEventListener);
            EventSink.AddEventListener(EventCategory.Storage, storageEventListener);
        }
Ejemplo n.º 2
0
        static NetworkChange()
        {
            NetworkChangeListener networkChangeListener = new NetworkChangeListener();

            EventSink.AddEventProcessor(EventCategory.Network, networkChangeListener);
            EventSink.AddEventListener(EventCategory.Network, networkChangeListener);
        }
Ejemplo n.º 3
0
        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);
 }
Ejemplo n.º 6
0
 public GpioPinEventListener()
 {
     EventSink.AddEventProcessor(EventCategory.Gpio, this);
     EventSink.AddEventListener(EventCategory.Gpio, this);
 }
 public CanControllerEventListener()
 {
     EventSink.AddEventProcessor(EventCategory.Can, this);
     EventSink.AddEventListener(EventCategory.Can, this);
 }
Ejemplo n.º 8
0
 public SerialDeviceEventListener()
 {
     EventSink.AddEventProcessor(EventCategory.SerialDevice, this);
     EventSink.AddEventListener(EventCategory.SerialDevice, this);
 }
Ejemplo n.º 9
0
        //WiFiAdapter wifiAdapter;

        public WiFiEventListener()
        {
            EventSink.AddEventProcessor(EventCategory.WiFi, this);
            EventSink.AddEventListener(EventCategory.WiFi, this);
        }