private IntPtr ResolveSchemaWrapper(IntPtr txn, IntPtr mgr, string schemaLocation, string nameSpace) { IntPtr ptr; using (Transaction transaction = (txn == IntPtr.Zero) ? null : Transaction.Create(new XmlTransaction(txn, false))) { using (Manager manager = (mgr == IntPtr.Zero) ? null : new Manager(new XmlManager(mgr, false))) { using (InputStream stream = this.ResolveSchema(transaction, manager, schemaLocation, nameSpace)) { if (stream == null) { return(IntPtr.Zero); } stream.Internal.disownCPtr(); ptr = XmlInputStream.getCPtr(stream.Internal); } } } return(ptr); }
private IntPtr ResolveEntityWrapper(IntPtr txn, IntPtr mgr, string systemId, string publicId) { IntPtr ptr; using (Transaction transaction = (txn == IntPtr.Zero) ? null : Transaction.Create(new XmlTransaction(txn, false))) { using (Manager manager = (mgr == IntPtr.Zero) ? null : new Manager(new XmlManager(mgr, false))) { using (InputStream stream = this.ResolveEntity(transaction, manager, systemId, publicId)) { if (stream == null) { return(IntPtr.Zero); } stream.Internal.disownCPtr(); ptr = XmlInputStream.getCPtr(stream.Internal); } } } return(ptr); }
public Transaction CreateTransaction(TransactionConfig config) { return(Transaction.Create(this.mgr_.createTransaction(config.Flags))); }
public Transaction CreateTransaction() { return(Transaction.Create(this.mgr_.createTransaction())); }