コード例 #1
0
        /// <inheritdoc />
        public async Task <long> GetSizeAsync()
        {
            var requestMessage  = RingbufferSizeCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

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

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