示例#1
0
        protected override IGattService CreateNative(Guid uuid, bool primary)
        {
            var service = new GattService(this.context, this, uuid, primary);

            this.server?.AddService(service.Native);
            return(service);
        }
示例#2
0
        protected override IGattService CreateNative(Guid uuid, bool primary)
        {
            var service = new GattService(this.manager, this, uuid, primary);

            this.services.Add(service);
            //this.context?.Manager.AddService(service.Native); // TODO: build the service out?
            return(service);
        }