Exemplo n.º 1
0
 public override void Close()
 {
     if (_tpmIO != null)
     {
         _tpmIO.Close();
     }
     if (TrmDevice != null)
     {
         TrmDevice.Close();
     }
 }
Exemplo n.º 2
0
 public override void Close()
 {
     if (TctiCtx != null && TctiCtxPtr != IntPtr.Zero)
     {
         Console.WriteLine("Closing TCTI conn");
         TctiCtx.finalize(TctiCtxPtr);
         Console.WriteLine("TCTI conn closed!");
         TctiCtxPtr = IntPtr.Zero;
     }
     else
     {
         if (_tpmIO != null)
         {
             _tpmIO.Close();
         }
         if (TrmDevice != null)
         {
             TrmDevice.Close();
         }
     }
 }
Exemplo n.º 3
0
 public override void Close()
 {
     Device.Close();
 }