Esempio n. 1
0
 public void _03_WaitForSlotEventTest()
 {
     using (IPkcs11Library pkcs11Library = Settings.Factories.Pkcs11LibraryFactory.LoadPkcs11Library(Settings.Factories, Settings.Pkcs11LibraryPath, Settings.AppType))
     {
         // Wait for a slot event
         bool  eventOccured = false;
         ulong slotId       = 0;
         pkcs11Library.WaitForSlotEvent(WaitType.NonBlocking, out eventOccured, out slotId);
         Assert.IsFalse(eventOccured);
     }
 }