Ejemplo n.º 1
0
        protected override bool ReleaseHandle()
        {
            // PreSharp
#pragma warning suppress 56523 // We are not interested in throwing an exception here if CloseHandle fails.
            return(CAPI.CertFreeCertificateContext(handle));
        }
Ejemplo n.º 2
0
 protected override bool ReleaseHandle()
 {
     CAPI.CertFreeCertificateChain(base.handle);
     return(true);
 }
        protected override bool ReleaseHandle()
        {
            // PreSharp Bug: Call 'Marshal.GetLastWin32Error' or 'Marshal.GetHRForLastWin32Error' before any other interop call.
#pragma warning suppress 56523 // We are not interested in throwing an exception here if CloseHandle fails.
            return(CAPI.CertFreeCertificateContext(handle));
        }
Ejemplo n.º 4
0
 protected override bool ReleaseHandle()
 {
     return(CAPI.CertCloseStore(base.handle, 0));
 }
 protected override bool ReleaseHandle()
 {
     return(CAPI.CertFreeCertificateContext(base.handle));
 }