C# Class Microsoft.Isam.Esent.Interop.StatusCallbackWrapper

Wraps a NATIVE_PFNSTATUS callback around a JET_PFNSTATUS. This is used to convert the snprog argument to a managed snprog.
Show file Open project: ayende/managed-esent Class Usage Examples

Private Properties

Property Type Description
CallbackImpl JET_err
StatusCallbackWrapper System

Public Methods

Method Description
StatusCallbackWrapper ( JET_PFNSTATUS wrappedCallback ) : System

Initializes a new instance of the StatusCallbackWrapper class.

ThrowSavedException ( ) : void

If an exception was generated during a callback throw it.

Private Methods

Method Description
CallbackImpl ( IntPtr nativeSesid, uint nativeSnp, uint nativeSnt, IntPtr nativeSnprog ) : JET_err

Callback function for native code.

StatusCallbackWrapper ( ) : System

Initializes static members of the StatusCallbackWrapper class.

Method Details

StatusCallbackWrapper() public method

Initializes a new instance of the StatusCallbackWrapper class.
public StatusCallbackWrapper ( JET_PFNSTATUS wrappedCallback ) : System
wrappedCallback JET_PFNSTATUS /// The managed callback to use. ///
return System

ThrowSavedException() public method

If an exception was generated during a callback throw it.
public ThrowSavedException ( ) : void
return void