Beispiel #1
0
        internal HazelcastClient GetClient()
        {
            HazelcastClient c = _client;

            if (c == null || !c.GetLifecycleService().IsRunning())
            {
                throw new HazelcastInstanceNotActiveException();
            }
            return(c);
        }
Beispiel #2
0
        public ILifecycleService GetLifecycleService()
        {
            HazelcastClient hz = _client;

            return(hz != null?hz.GetLifecycleService() : new TerminatedLifecycleService());
        }