public async Task <int> CountAsync()
        {
            var requestMessage  = TransactionalMultiMapSizeCodec.EncodeRequest(Name, TransactionId, ContextId);
            var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CAF();

            return(TransactionalMultiMapSizeCodec.DecodeResponse(responseMessage).Response);
        }
Пример #2
0
        public virtual int Size()
        {
            var request = TransactionalMultiMapSizeCodec.EncodeRequest(Name, GetTransactionId(), GetThreadId());

            return(Invoke(request, m => TransactionalMultiMapSizeCodec.DecodeResponse(m).Response));
        }