コード例 #1
0
        /// <inheritdoc />
        public override async Task <int> CountAsync()
        {
            var requestMessage  = ListSizeCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CAF();

            return(ListSizeCodec.DecodeResponse(responseMessage).Response);
        }
コード例 #2
0
        public override int Size()
        {
            var request = ListSizeCodec.EncodeRequest(GetName());

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