Exemple #1
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(LocalTransactionChecker obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Exemple #2
0
 public void InitializeOrderProducer()
 {
     myChecker           = new MyLocalTransactionChecker();
     transactionProducer = ONSFactory.getInstance().createTransactionProducer(factoryInfo, myChecker);
     transactionProducer.start();
 }
Exemple #3
0
        public virtual TransactionProducer createTransactionProducer(ONSFactoryProperty factoryProperty, LocalTransactionChecker checker)
        {
            global::System.IntPtr cPtr = ONSClient4CPPPINVOKE.ONSFactoryAPI_createTransactionProducer(swigCPtr, ONSFactoryProperty.getCPtr(factoryProperty), LocalTransactionChecker.getCPtr(checker));
            TransactionProducer   ret  = (cPtr == global::System.IntPtr.Zero) ? null : new TransactionProducer(cPtr, false);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }