示例#1
0
                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);
                }
示例#2
0
 private static extern void apache_geode_CacheFactory_SetAuthInitialize(IntPtr factory, GetCredentialsDelegateInternal getCredentials, CloseDelegateInternal close);