blob: 91e1d26ea5750f31fed8f94bb54ce82255b85e5a [file] [log] [blame]
using System;
using System.Runtime.InteropServices;
namespace Apache
{
namespace Geode
{
namespace DotNetCore
{
public class PoolManager : GemfireNativeObject
{
[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;
}
}
}
}
}