コード例 #1
0
        public virtual OrderConsumer createOrderConsumer(ONSFactoryProperty factoryProperty)
        {
            var cPtr = ONSClient4CPPPINVOKE.ONSFactoryAPI_createOrderConsumer(swigCPtr, ONSFactoryProperty.getCPtr(factoryProperty));
            var ret  = cPtr == IntPtr.Zero ? null : new OrderConsumer(cPtr, false);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #2
0
        public virtual TransactionProducer createTransactionProducer(ONSFactoryProperty factoryProperty, LocalTransactionChecker checker)
        {
            var cPtr = ONSClient4CPPPINVOKE.ONSFactoryAPI_createTransactionProducer(swigCPtr, ONSFactoryProperty.getCPtr(factoryProperty), LocalTransactionChecker.getCPtr(checker));
            var ret  = cPtr == IntPtr.Zero ? null : new TransactionProducer(cPtr, false);

            if (ONSClient4CPPPINVOKE.SWIGPendingException.Pending)
            {
                throw ONSClient4CPPPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
コード例 #3
0
 internal static HandleRef getCPtr(ONSFactoryProperty obj)
 {
     return(obj == null ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }