// BsGetSliceByArray get by position begin -> end
        public bool BsGetSliceByArray(string bsKey, int begin, int count, ref TItemSetResult itemSetResult)
        {
            TClientInfo clientInfo = _setClient.getClient();

            if (!clientInfo.isOpen())
            {
                clientInfo.doOpen();
            }
            if (!clientInfo.sureOpen())
            {
                Thread.Sleep(1 * 100);
                if (!clientInfo.sureOpen())
                {
                    Console.WriteLine("Can't open");
                    return(false);
                }
            }
            _aClient = (TStringBigSetKVService.Client)clientInfo.getClient();
            var bsGetSliceRAsync = _aClient.bsGetSliceRAsync(bsKey, begin, count);

            if (bsGetSliceRAsync.IsCanceled || bsGetSliceRAsync.IsFaulted)
            {
                Console.WriteLine("bsGetSliceRAsync.IsCanceled || bsGetSliceRAsync.IsFaulted");
                clientInfo.cleanUp();
                return(false);
            }
            if (bsGetSliceRAsync.Result.Items.Items.Count < 1)
            {
                clientInfo.cleanUp();
                return(false);
            }
            itemSetResult = bsGetSliceRAsync.Result;
            clientInfo.cleanUp();
            return(true);
        }
        // BsGetSlice get all
        public bool BsGetSlice(string bsKey, ref TItemSetResult itemSetResult)
        {
            lock (_object){
                TClientInfo clientInfo = _setClient.getClient();
                if (!clientInfo.isOpen())
                {
                    clientInfo.doOpen();
                }

                if (!clientInfo.sureOpen())
                {
                    Thread.Sleep(1 * 100);
                    if (!clientInfo.sureOpen())
                    {
                        Console.WriteLine("Can't open");
                        return(false);
                    }
                }
                _aClient = (TStringBigSetKVService.Client)clientInfo.getClient();

                var getTotalCountAsync = _aClient.getTotalCountAsync(bsKey);
                if (getTotalCountAsync.IsCanceled || getTotalCountAsync.IsFaulted)
                {
                    Console.WriteLine("getTotalCountAsync.IsCanceled || getTotalCountAsync.IsFaulted");
                    clientInfo.cleanUp();
                    return(false);
                }
                long totalCount = getTotalCountAsync.Result;
                //Console.WriteLine("Count "+totalCount);
                int count = Convert.ToInt32(totalCount);
                if (count < 1)
                {
                    clientInfo.cleanUp();
                    return(false);
                }
                var bsGetSliceRAsync = _aClient.bsGetSliceRAsync(bsKey, 0, count);
                if (bsGetSliceRAsync.IsCanceled || bsGetSliceRAsync.IsFaulted)
                {
                    Console.WriteLine("bsGetSliceRAsync.IsCanceled || bsGetSliceRAsync.IsFaulted");
                    clientInfo.cleanUp();
                    return(false);
                }
                itemSetResult = bsGetSliceRAsync.Result;

                clientInfo.cleanUp();
                return(true);
            }
        }