theLink 10.0
Loading...
Searching...
No Matches
MqContextC_Misc_CS_API

MqContextC - various functions to work on a contextMore...

+ Collaboration diagram for MqContextC_Misc_CS_API:

Functions

MkBufferC csmqmsgque.MqContextC.GetBuffer ()
  C#: MkBufferC ctx.GetBuffer() C-API
get the MqContextS.ctxbuf object
 
MqContextC csmqmsgque.MqContextC.GetRoot ()
  C#: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)
 
int csmqmsgque.MqContextC.Exit ([CallerMemberName]string callfunc=null, [CallerFilePath]string callfile=null, [CallerLineNumber]int callline=-1)
  C#: int ctx.Exit([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null, [CallerLineNumber]int callline = -1) C-API
delete the context and exit the current process or thread …
 
void csmqmsgque.MqContextC.ProcessEvent (MqWaitOnEventE wait=MqWaitOnEventE.NO, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.ProcessEvent(MqWaitOnEventE wait = MqWaitOnEventE.NO, long timeout = (long)MkTimeoutE.DEFAULT) C-API
enter the event-loop and wait for an incoming service-request. …
 

Detailed Description

MqContextC - various functions to work on a context

Function Documentation

◆ Exit()

int csmqmsgque.MqContextC.Exit ( [CallerMemberName] string callfunc = null,
[CallerFilePath] string callfile = null,
[CallerLineNumber] int callline = -1 )
inline

C#: int ctx.Exit([CallerMemberName]string callfunc = null, [CallerFilePath]string callfile = null, [CallerLineNumber]int callline = -1) C-API
delete the context and exit the current process or thread …

Definition at line 927 of file MqContextC.cs.

927 {
928 IntPtr callfunc_cstr = Marshal.StringToHGlobalAnsi(callfunc);
929 IntPtr callfile_cstr = Marshal.StringToHGlobalAnsi(callfile);
930 Int32 __retVal__L = Mq.MqExit(mkrt, hdl_null_allow, callfunc_cstr, callfile_cstr, callline);
931 Marshal.FreeHGlobal(callfunc_cstr);
932 Marshal.FreeHGlobal(callfile_cstr);
933 return __retVal__L;
934 }
csmqmsgque.MqMsgque Mq

◆ GetBuffer()

MkBufferC csmqmsgque.MqContextC.GetBuffer ( )
inline

C#: MkBufferC ctx.GetBuffer() C-API
get the MqContextS.ctxbuf object

Definition at line 911 of file MqContextC.cs.

911 {
912 IntPtr __retVal__L = Mq.MqContextGetBuffer(mkrt, hdl);
913 return MkBufferC.MkBufferC_ObjNew(__retVal__L);
914 }
static MkBufferC MkBufferC_ObjNew(IntPtr hdl)

◆ GetRoot()

MqContextC csmqmsgque.MqContextC.GetRoot ( )
inline

C#: MqContextC ctx.GetRoot() C-API
get the Root (toplevel initial context)

Definition at line 917 of file MqContextC.cs.

917 {
918 IntPtr __retVal__L = Mq.MqGetRoot(hdl);
919 return MqContextC.MqContextC_ObjNew(__retVal__L);
920 }

◆ ProcessEvent()

void csmqmsgque.MqContextC.ProcessEvent ( MqWaitOnEventE wait = MqWaitOnEventE::NO,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.ProcessEvent(MqWaitOnEventE wait = MqWaitOnEventE.NO, long timeout = (long)MkTimeoutE.DEFAULT) C-API
enter the event-loop and wait for an incoming service-request. …

Definition at line 937 of file MqContextC.cs.

937 {
938 MkErrorE errVal = Mq.MqProcessEvent(mkrt, hdl, wait, timeout);
939 MkErrorC.Check(hdl, errVal);
940 }
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE