Пример #1
0
        private bool AttemptToSignOPC(string path)
        {
            try {
                var opc = new OPCSigner(_certificate);

                return(AttemptToSign(() => opc.Sign(path)));
            } catch (Exception) {
                return(false);
            }
        }
Пример #2
0
        private void AttemptToSignOPC(string path, X509Certificate2 certificate)
        {
            var opc = new OPCSigner(certificate, _log);

            AttemptToSign(() => opc.Sign(path, true));
        }
Пример #3
0
        private bool AttemptToSignOPC(string path)
        {
            try {
                var opc = new OPCSigner(Certificate);

                return AttemptToSign( () => opc.Sign(path));

            } catch (Exception) {

                return false;
            }
        }