internal Cache(IntPtr cacheFactory, IAuthInitialize authInitialize) { _authInitialize = authInitialize; if (_authInitialize != null) { _getCredentialsDelegate = new GetCredentialsDelegateInternal(AuthGetCredentials); _closeDelegate = new CloseDelegateInternal(AuthClose); apache_geode_CacheFactory_SetAuthInitialize(cacheFactory, _getCredentialsDelegate, _closeDelegate); } _containedObject = apache_geode_CacheFactory_CreateCache(cacheFactory); }
private static extern void apache_geode_CacheFactory_SetAuthInitialize(IntPtr factory, GetCredentialsDelegateInternal getCredentials, CloseDelegateInternal close);