public GetStreamLengthCommand(string key, string lockHandle)
 {
     base.name                     = "GetStreamLengthCommand";
     this._getStreamLen            = new Alachisoft.NCache.Common.Protobuf.GetStreamLengthCommand();
     this._getStreamLen.key        = key;
     this._getStreamLen.lockHandle = lockHandle;
     this._getStreamLen.requestId  = base.RequestId;
 }
        public override void ExecuteCommand(ClientManager clientManager, Alachisoft.NCache.Common.Protobuf.Command command)
        {
            Alachisoft.NCache.Common.Protobuf.GetStreamLengthCommand getStreamLengthCommand = command.getStreamLengthCommand;

            try
            {
                long streamLength = ((NCache)clientManager.CmdExecuter).Cache.GetStreamLength(getStreamLengthCommand.key, getStreamLengthCommand.lockHandle, new OperationContext(OperationContextFieldName.OperationType, OperationContextOperationType.CacheOperation));
                Alachisoft.NCache.Common.Protobuf.Response response = new Alachisoft.NCache.Common.Protobuf.Response();

                Alachisoft.NCache.Common.Protobuf.GetStreamLengthResponse getStreamLengthResponse = new Alachisoft.NCache.Common.Protobuf.GetStreamLengthResponse();
                response.requestId    = getStreamLengthCommand.requestId;
                response.commandID    = command.commandID;
                response.responseType = Alachisoft.NCache.Common.Protobuf.Response.Type.GET_STREAM_LENGTH;
                getStreamLengthResponse.streamLength = streamLength;
                response.getStreamLengthResponse     = getStreamLengthResponse;

                _serializedResponsePackets.Add(Alachisoft.NCache.Common.Util.ResponseHelper.SerializeResponse(response));
            }
            catch (Exception e)
            {
                _serializedResponsePackets.Add(Alachisoft.NCache.Common.Util.ResponseHelper.SerializeExceptionResponse(e, command.requestID, command.commandID));
            }
        }