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