/// <summary>
 /// Loads PCKS#11 library
 /// </summary>
 /// <param name="libraryPath">Library name or path</param>
 /// <param name="useGetFunctionList">Flag indicating whether cryptoki function pointers should be acquired via C_GetFunctionList (true) or via platform native function (false)</param>
 public MockPkcs11Library(string libraryPath, bool useGetFunctionList)
     : base(libraryPath, useGetFunctionList)
 {
     try
     {
         _mockDelegates = new MockDelegates(_libraryHandle);
     }
     catch
     {
         base.Dispose();
         throw;
     }
 }
 /// <summary>
 /// Loads PCKS#11 library
 /// </summary>
 /// <param name="libraryPath">Library name or path</param>
 public MockPkcs11Library(string libraryPath)
     : base(libraryPath)
 {
     try
     {
         _mockDelegates = new MockDelegates(_libraryHandle);
     }
     catch
     {
         base.Dispose();
         throw;
     }
 }