Пример #1
0
        public bool IsCompliant(X509Certificate2 cert, IPolicyExpression expression)
        {
            if (m_compiler == null)
            {
                throw new InvalidOperationException("Compiler cannot be null");
            }

            StackMachine    executionEngine = new StackMachine();
            IList <IOpCode> opcodes         = m_compiler.Compile(cert, expression);
            var             compliant       = executionEngine.Evaluate(opcodes);

            return(compliant);
        }