Свойство | Тип | Описание | |
---|---|---|---|
nativeHandle |
Метод | Описание | |
---|---|---|
Dispose ( ) : void |
Destroys the underlying peer object and unbinds the wrapper from it.
|
|
setNativeHandle ( |
Sets the native handle of the native peer object. Should only be used by subclasses and in the same assembly.
|
Метод | Описание | |
---|---|---|
CheckResultCode ( int code ) : void |
Helper method for the sub classes
|
|
CheckResultCodeIgnoreNotFound ( int code ) : MamaStatus.mamaStatus |
Helper method for the sub classes which will not throw exception for not found
|
|
DestroyNativePeer ( ) : MamaStatus.mamaStatus |
Subclasses must do whatever is necessary with the native handle in the overridden method in order to destroy the native peer object. If the destruction went successfully, the overridden method must return MamaStatus.mamaStatus.MAMA_STATUS_OK, or a suitable error code otherwise
|
|
Dispose ( bool disposing, bool destroyNativeHandle = true ) : void |
The actual implementation of Dispose - called by both the Dispose method and the finalizer.
|
|
EnsurePeerCreated ( ) : void |
Throws an exception if the native object has not been created.
|
|
MamaWrapper ( ) : System |
Constructs a new wrapper object but doesn't create it. If the object is not explicitly disposed it will remain registered for finalization and will attempt the destroy the native peer object when finalized.
|
|
MamaWrapper ( |
Constructs a managed wrapper from an existing native peer. The peer object will not be automatically finalized
|
|
OnDispose ( ) : void |
|
|
SelfManageLifeTime ( bool value ) : void |
In some situations, wrappers are created elsewhere, but need to automatically destroy themselves, otherwise would be leaked; as a general rule, all .NET wrapper objects that were created from a native handle are not supposed to manage its own life time and will not be destroyed - this is an exception that needs to be handled (example - MamaMsg uses this method)
|
protected static CheckResultCode ( int code ) : void | ||
code | int | the MamaStatus.mamaStatus returned from the native call (as integer) |
Результат | void |
protected static CheckResultCodeIgnoreNotFound ( int code ) : MamaStatus.mamaStatus | ||
code | int | the MamaStatus.mamaStatus returned from the native call (as integer) |
Результат | MamaStatus.mamaStatus |
protected abstract DestroyNativePeer ( ) : MamaStatus.mamaStatus | ||
Результат | MamaStatus.mamaStatus |
protected Dispose ( bool disposing, bool destroyNativeHandle = true ) : void | ||
disposing | bool | true if the object is being disposed (false if being finalized) |
destroyNativeHandle | bool | |
Результат | void |
protected MamaWrapper ( |
||
nativeHandle | The opaque native handle to the peer object | |
Результат | System |
protected SelfManageLifeTime ( bool value ) : void | ||
value | bool | |
Результат | void |
public setNativeHandle ( |
||
nHandle | ||
Результат | void |