private void GattSever_OnServiceAdded(object sender, IGattServerService e)
 {
     Device.BeginInvokeOnMainThread(() =>
     {
         serviceModelList.Add(new GattServiceModel(e));
     });
 }
Ejemplo n.º 2
0
 public void AddToService(GattServerService service)
 {
     Service = service;
     service.GattCharacteristics.Add(this);
     service.DroidService.AddCharacteristic(DroidCharacteristic);
 }
Ejemplo n.º 3
0
 public GattServiceModel(IGattServerService gattServerService)
 {
     GattServerService = gattServerService;
 }
Ejemplo n.º 4
0
 public void AddService(IGattServerService service)
 {
     (service as GattServerService).AddToServer(this);
 }
Ejemplo n.º 5
0
 public void AddService(IGattServerService service)
 {
     (service as GattServerService).AddToServer(this);
     OnServiceAdded?.Invoke(this, service);
 }