コード例 #1
0
        public async Task <int> CountAsync()
        {
            var requestMessage  = TransactionalMapSizeCodec.EncodeRequest(Name, TransactionId, ContextId);
            var responseMessage = await Cluster.Messaging.SendToMemberAsync(requestMessage, TransactionClientConnection).CAF();

            return(TransactionalMapSizeCodec.DecodeResponse(responseMessage).Response);
        }
コード例 #2
0
        public virtual int Size()
        {
            var request = TransactionalMapSizeCodec.EncodeRequest(GetName(), GetTransactionId(), GetThreadId());

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