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

            return(RingbufferTailSequenceCodec.DecodeResponse(responseMessage).Response);
        }
Esempio n. 2
0
        public long TailSequence()
        {
            var request = RingbufferTailSequenceCodec.EncodeRequest(GetName());

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