theLink 10.0
Loading...
Searching...
No Matches
MqContextC_SendApi_Basics_CS_API

MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-serviceMore...

+ Collaboration diagram for MqContextC_SendApi_Basics_CS_API:

Functions

void csmqmsgque.MqContextC.SendEND (string token, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND(string token, long timeout = (long)MkTimeoutE.DEFAULT) C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service
 
void csmqmsgque.MqContextC.SendEND_AND_CALLBACK (string token, MqServiceCCB callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void csmqmsgque.MqContextC.SendEND_AND_CALLBACK (string token, MqServiceICB callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void csmqmsgque.MqContextC.SendEND_AND_CALLBACK (string token, MqServiceIF callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback
 
void csmqmsgque.MqContextC.SendEND_AND_SUB (string token, MqServiceCCB callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void csmqmsgque.MqContextC.SendEND_AND_SUB (string token, MqServiceICB callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void csmqmsgque.MqContextC.SendEND_AND_SUB (string token, MqServiceIF callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback
 
void csmqmsgque.MqContextC.SendEND_AND_TRANSACTION (string token, string callback, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_TRANSACTION(string token, string callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call
 
void csmqmsgque.MqContextC.SendEND_AND_WAIT (string token, long timeout=(long) MkTimeoutE.DEFAULT)
  C#: ctx.SendEND_AND_WAIT(string token, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service and wait for result…
 
void csmqmsgque.MqContextC.SendSTART ()
  C#: ctx.SendSTART() C-API
initialize the send-data-package. …
 
void csmqmsgque.MqContextC.SendSYNC ()
  C#: ctx.SendSYNC() C-API
garantee that all pending asynchronous-service-calls are processed. …
 

Detailed Description

MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

calling a remote service and wait timeout seconds for an result. If timeout == 0 it is an asynchronous-service-call and if the timeout > 0 it is a synchronous-service-call.

service-call blocking timeout
synchronous yes timeout > 0
asynchronous no timeout == 0

blocking mean waiting max timeout seconds to finishing the service-call:

If an error was raised on the server during the service-processing… the following error-handling will be available

  1. on a synchronous-service-call the error will be the result of the service-call
  2. on a asynchronous-service-call with callback the error will be the result of the callback
  3. on a asynchronous-service-call without callback the error will be send asynchronous from the server to the client . On the client the error will be raised on the NEXT event-handlng-command or as background-error if the MqSetupS.BgError function was defined.
Parameters
[in]mkrtthe MkRuntimeS instance to work on - the runtime argument, used by MK_RT_CALL (C-only)
[in]ctxthe MqContextS instance to work on
[in]tokenthe MqContextC SERVICE API to identify the service
[in]timeoutin seconds until a timeout-error is raised (possible values like ProcessEvent) (MK_TIMEOUT_DEFAULT=0)
Exceptions
MkExceptionC→ The default-exception from the Programming-Language-Micro-Kernel (PLMK)
See also
MqSendSYNC

Function Documentation

◆ SendEND()

void csmqmsgque.MqContextC.SendEND ( string token,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND(string token, long timeout = (long)MkTimeoutE.DEFAULT) C-API
MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service

Definition at line 1431 of file MqContextC.cs.

1431 {
1432 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1433 MkErrorE errVal = Mq.MqSendEND(mkrt, hdl, token_cstr, timeout);
1434 Marshal.FreeHGlobal(token_cstr);
1435 MkErrorC.Check(hdl, errVal);
1436 }
csmqmsgque.MqMsgque Mq
static void Check(IntPtr ctx, MkErrorE err)
MkErrorE

◆ SendEND_AND_CALLBACK() [1/3]

void csmqmsgque.MqContextC.SendEND_AND_CALLBACK ( string token,
MqServiceCCB callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1439 of file MqContextC.cs.

1439 {
1440 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1441 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MqCall(mkrt,callback));
1442 MkErrorE errVal = Mq.MqSendEND_AND_CALLBACK(mkrt, hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1443 Marshal.FreeHGlobal(token_cstr);
1444 MkErrorC.Check(hdl, errVal);
1445 }

◆ SendEND_AND_CALLBACK() [2/3]

void csmqmsgque.MqContextC.SendEND_AND_CALLBACK ( string token,
MqServiceICB callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1448 of file MqContextC.cs.

1448 {
1449 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1450 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MqCall(mkrt,callback));
1451 MkErrorE errVal = Mq.MqSendEND_AND_CALLBACK(mkrt, hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1452 Marshal.FreeHGlobal(token_cstr);
1453 MkErrorC.Check(hdl, errVal);
1454 }

◆ SendEND_AND_CALLBACK() [3/3]

void csmqmsgque.MqContextC.SendEND_AND_CALLBACK ( string token,
MqServiceIF callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_CALLBACK(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do not-wait for the result but expect the result on a callback

Definition at line 1457 of file MqContextC.cs.

1457 {
1458 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1459 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MqCall(mkrt,callback));
1460 MkErrorE errVal = Mq.MqSendEND_AND_CALLBACK(mkrt, hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1461 Marshal.FreeHGlobal(token_cstr);
1462 MkErrorC.Check(hdl, errVal);
1463 }

◆ SendEND_AND_SUB() [1/3]

void csmqmsgque.MqContextC.SendEND_AND_SUB ( string token,
MqServiceCCB callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1466 of file MqContextC.cs.

1466 {
1467 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1468 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MqCall(mkrt,callback));
1469 MkErrorE errVal = Mq.MqSendEND_AND_SUB(mkrt, hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1470 Marshal.FreeHGlobal(token_cstr);
1471 MkErrorC.Check(hdl, errVal);
1472 }

◆ SendEND_AND_SUB() [2/3]

void csmqmsgque.MqContextC.SendEND_AND_SUB ( string token,
MqServiceICB callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1475 of file MqContextC.cs.

1475 {
1476 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1477 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MqCall(mkrt,callback));
1478 MkErrorE errVal = Mq.MqSendEND_AND_SUB(mkrt, hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1479 Marshal.FreeHGlobal(token_cstr);
1480 MkErrorC.Check(hdl, errVal);
1481 }

◆ SendEND_AND_SUB() [3/3]

void csmqmsgque.MqContextC.SendEND_AND_SUB ( string token,
MqServiceIF callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_SUB(string token, MqServiceICB|MqServiceCCB|MqServiceIF callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service, do wait for the result and expect multiple sub-results on a callback

Definition at line 1484 of file MqContextC.cs.

1484 {
1485 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1486 IntPtr callback_ptr = callback == null ? IntPtr.Zero : (IntPtr)GCHandle.Alloc(new MqCall(mkrt,callback));
1487 MkErrorE errVal = Mq.MqSendEND_AND_SUB(mkrt, hdl, token_cstr, ServiceCall, callback_ptr, ServiceFree, timeout);
1488 Marshal.FreeHGlobal(token_cstr);
1489 MkErrorC.Check(hdl, errVal);
1490 }

◆ SendEND_AND_TRANSACTION()

void csmqmsgque.MqContextC.SendEND_AND_TRANSACTION ( string token,
string callback,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_TRANSACTION(string token, string callback, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service to do a longterm-transaction-call

Definition at line 1493 of file MqContextC.cs.

1493 {
1494 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1495 IntPtr callback_cstr = Marshal.StringToHGlobalAnsi(callback);
1496 MkErrorE errVal = Mq.MqSendEND_AND_TRANSACTION(mkrt, hdl, token_cstr, callback_cstr, timeout);
1497 Marshal.FreeHGlobal(token_cstr);
1498 Marshal.FreeHGlobal(callback_cstr);
1499 MkErrorC.Check(hdl, errVal);
1500 }

◆ SendEND_AND_WAIT()

void csmqmsgque.MqContextC.SendEND_AND_WAIT ( string token,
long timeout = (long)MkTimeoutE::DEFAULT )
inline

C#: ctx.SendEND_AND_WAIT(string token, long timeout = (long)MkTimeoutE.DEFAULT) C-API
finish the send-data-block, call the remote service and wait for result…

Definition at line 1503 of file MqContextC.cs.

1503 {
1504 IntPtr token_cstr = Marshal.StringToHGlobalAnsi(token);
1505 MkErrorE errVal = Mq.MqSendEND_AND_WAIT(mkrt, hdl, token_cstr, timeout);
1506 Marshal.FreeHGlobal(token_cstr);
1507 MkErrorC.Check(hdl, errVal);
1508 }

◆ SendSTART()

void csmqmsgque.MqContextC.SendSTART ( )
inline

C#: ctx.SendSTART() C-API
initialize the send-data-package. …

Definition at line 1511 of file MqContextC.cs.

1511 {
1512 MkErrorE errVal = Mq.MqSendSTART(mkrt, hdl);
1513 MkErrorC.Check(hdl, errVal);
1514 }

◆ SendSYNC()

void csmqmsgque.MqContextC.SendSYNC ( )
inline

C#: ctx.SendSYNC() C-API
garantee that all pending asynchronous-service-calls are processed. …

Definition at line 1517 of file MqContextC.cs.

1517 {
1518 MkErrorE errVal = Mq.MqSendSYNC(mkrt, hdl);
1519 MkErrorC.Check(hdl, errVal);
1520 }