示例#1
0
        public LLCP(INfcTransceiver chip, Data106kbpsTypeA iso14443Device)
        {
            IsoIec18092LinkServiceManager linkManager = new IsoIec18092LinkServiceManager();

            linkManager.Chip         = chip;
            linkManager.TargetNumber = iso14443Device.TargetNumber;
            ServiceManagers.Add(linkManager.SSAP, linkManager);
            SnepServiceManager snepServiceManager = new SnepServiceManager(linkManager);

            ServiceManagers.Add(snepServiceManager.SSAP, snepServiceManager);
        }
示例#2
0
        public bool AddServiceManager(ServiceManager manager)
        {
            bool result = false;

            if (!ServiceManagers.ContainsKey(manager.SSAP))
            {
                try
                {
                    ServiceManagers.Add(manager.SSAP, manager);
                    result = true;
                }
                catch
                {
                }
            }
            return(result);
        }