MqContextC - finish the send-data-block and call synchronous/asynchronous a remote-service …
More...
|
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. …
|
|
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 the service-call is finished in less than timeout seconds… the results are available and can be processed.
- If the service-call is NOT finished in timeout seconds… an timeout-error is created and the transaction will be canceled.
If an error was raised on the server during the service-processing… the following error-handling will be available
- on a synchronous-service-call the error will be the result of the service-call
- on a asynchronous-service-call with callback the error will be the result of the callback
- 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
-
- Exceptions
-
- See also
- MqSendSYNC
◆ SendEND()
◆ SendEND_AND_CALLBACK() [1/3]
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);
1445 }
◆ SendEND_AND_CALLBACK() [2/3]
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);
1454 }
◆ SendEND_AND_CALLBACK() [3/3]
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);
1463 }
◆ SendEND_AND_SUB() [1/3]
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);
1472 }
◆ SendEND_AND_SUB() [2/3]
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);
1481 }
◆ SendEND_AND_SUB() [3/3]
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);
1490 }
◆ SendEND_AND_TRANSACTION()
void csmqmsgque.MqContextC.SendEND_AND_TRANSACTION |
( |
string | token, |
|
|
string | callback, |
|
|
long | timeout = (long)MkTimeoutE::DEFAULT ) |
|
inline |
◆ SendEND_AND_WAIT()
void csmqmsgque.MqContextC.SendEND_AND_WAIT |
( |
string | token, |
|
|
long | timeout = (long)MkTimeoutE::DEFAULT ) |
|
inline |
◆ SendSTART()
void csmqmsgque.MqContextC.SendSTART |
( |
| ) |
|
|
inline |
◆ SendSYNC()
void csmqmsgque.MqContextC.SendSYNC |
( |
| ) |
|
|
inline |