private bool AttemptToSignOPC(string path) { try { var opc = new OPCSigner(_certificate); return(AttemptToSign(() => opc.Sign(path))); } catch (Exception) { return(false); } }
private void AttemptToSignOPC(string path, X509Certificate2 certificate) { var opc = new OPCSigner(certificate, _log); AttemptToSign(() => opc.Sign(path, true)); }
private bool AttemptToSignOPC(string path) { try { var opc = new OPCSigner(Certificate); return AttemptToSign( () => opc.Sign(path)); } catch (Exception) { return false; } }