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

Wraps a NATIVE_CALLBACK callback around a JET_CALLBACK. This is used to catch exceptions and provide argument conversion.
显示文件 Open project: ayende/managed-esent Class Usage Examples

Public Methods

Method Description
IsWrapping ( JET_CALLBACK callback ) : bool

Determine if the callback is wrapping the specified JET_CALLBACK.

JetCallbackWrapper ( JET_CALLBACK callback ) : System

Initializes a new instance of the JetCallbackWrapper class.

Private Methods

Method Description
CallbackImpl ( IntPtr nativeSesid, uint nativeDbid, IntPtr nativeTableid, uint nativeCbtyp, IntPtr arg1, IntPtr arg2, IntPtr nativeContext, IntPtr unused ) : JET_err

Callback function for native code.

JetCallbackWrapper ( ) : System

Initializes static members of the JetCallbackWrapper class.

Method Details

IsWrapping() public method

Determine if the callback is wrapping the specified JET_CALLBACK.
public IsWrapping ( JET_CALLBACK callback ) : bool
callback JET_CALLBACK The callback.
return bool

JetCallbackWrapper() public method

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