blob: 6e2832565b6fb611667a49021b2cf14939bceb60 [file] [log] [blame]
using System;
using System.Runtime.InteropServices;
namespace Apache
{
namespace Geode
{
namespace NetCore
{
public class PoolManager : GeodeNativeObject
{
[DllImport(Constants.libPath,
CharSet = CharSet.Auto)]
private static extern IntPtr apache_geode_Cache_GetPoolManager(IntPtr cache);
[DllImport(Constants.libPath,
CharSet = CharSet.Auto)]
private static extern IntPtr apache_geode_DestroyPoolManager(IntPtr poolManager);
internal PoolManager(IntPtr cache)
{
_containedObject = apache_geode_Cache_GetPoolManager(cache);
}
public PoolFactory CreatePoolFactory()
{
return new PoolFactory(_containedObject);
}
protected override void DestroyContainedObject()
{
apache_geode_DestroyPoolManager(_containedObject);
_containedObject = IntPtr.Zero;
}
}
}
}
}