Пример #1
0
        /// <summary>
        /// Connects to a secure element in the given reader.
        /// </summary>
        /// <since_tizen> 3 </since_tizen>
        /// <returns>The SmartcardSession object.</returns>
        public SmartcardSession OpenSession()
        {
            int ret = Interop.Smartcard.Reader.ReaderOpenSession(_readerHandle, out _session);

            if (ret != (int)SmartcardError.None)
            {
                Log.Error(Globals.LogTag, "Failed to get session handle, Error - " + (SmartcardError)ret);
            }

            SmartcardSession session = new SmartcardSession(this, _session);

            _sessionList.Add(session);
            return(session);
        }
Пример #2
0
 internal SmartcardChannel(SmartcardSession sessionHandle, int channelHandle)
 {
     _sessionObject = sessionHandle;
     _channelHandle = channelHandle;
 }