Esempio n. 1
0
        private void EstablishContext()
        {
            var operationResult = _cardreader.EstablishContext();

            if (!operationResult.IsSuccessful)
            {
                throw new SmartCardException(operationResult);
            }
        }
        public void Setup()
        {
            var fact = _reader.EstablishContext();

            _isContextEstablished = fact.IsSuccessful;

            if (!_isContextEstablished)
            {
                throw new Exception("Context is not established");
            }
        }