Ejemplo n.º 1
0
        private ResourcePool CreateResourcePool()
        {
            ResourcePool.TransactionEndDelegate enddelegate = new ResourcePool.TransactionEndDelegate(this.TransactionEndedCallback);
#if DEBUG
            try {
                (new RegistryPermission(RegistryPermissionAccess.Read, "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\COM3\\System.EnterpriseServices")).Assert(); // MDAC 84045
                try {
#endif
            return(new ResourcePool(enddelegate));

#if DEBUG
        }
        finally {
            RegistryPermission.RevertAssert();
        }
    }
    catch {
        throw;
    }
#endif
        }
Ejemplo n.º 2
0
        public ResourcePool(ResourcePool.TransactionEndDelegate cb)
        {
//			this.cb = cb;
        }