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

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

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