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); }
public virtual int Size() { var request = TransactionalMapSizeCodec.EncodeRequest(GetName(), GetTransactionId(), GetThreadId()); return(Invoke(request, m => TransactionalMapSizeCodec.DecodeResponse(m).response)); }