public async Task <bool> ContainsKeyAsync(TKey key)
        {
            var keyData         = ToSafeData(key);
            var requestMessage  = TransactionalMapContainsKeyCodec.EncodeRequest(Name, TransactionId, ContextId, keyData);
            var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CAF();

            return(TransactionalMapContainsKeyCodec.DecodeResponse(responseMessage).Response);
        }
        public virtual bool ContainsKey(object key)
        {
            var keyData = ToData(key);
            var request = TransactionalMapContainsKeyCodec.EncodeRequest(GetName(), GetTransactionId(), GetThreadId(),
                                                                         keyData);

            return(Invoke(request, m => TransactionalMapContainsKeyCodec.DecodeResponse(m).response));
        }