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); }