コード例 #1
0
ファイル: GattServer.cs プロジェクト: aalice072/MVVMCrossBLE
        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
ファイル: GattServer.cs プロジェクト: aalice072/MVVMCrossBLE
        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);
        }