Exemplo n.º 1
0
        /// <inheritdoc />
        public async Task <long> GetRemainingCapacityAsync()
        {
            var requestMessage  = RingbufferRemainingCapacityCodec.EncodeRequest(Name);
            var responseMessage = await Cluster.Messaging.SendToPartitionOwnerAsync(requestMessage, PartitionId).CfAwait();

            return(RingbufferRemainingCapacityCodec.DecodeResponse(responseMessage).Response);
        }
Exemplo n.º 2
0
        public long RemainingCapacity()
        {
            var request = RingbufferRemainingCapacityCodec.EncodeRequest(GetName());

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