Ejemplo n.º 1
0
        public static MessageReader GetReader(string sas)
        {
            var uri = new Uri(sas);
            var container = new CloudBlobContainer(uri);

            var posBlob = container.GetPageBlobReference(Constants.PositionFileName);
            var dataBlob = container.GetPageBlobReference(Constants.StreamFileName);
            var position = new CloudCheckpointReader(posBlob);
            var messages = new CloudPageReader(dataBlob);
            return new MessageReader(position, messages);
        }
Ejemplo n.º 2
0
        public static Tuple <CloudCheckpointReader, CloudPageReader> GetReaderRaw(string sas)
        {
            var uri       = new Uri(sas);
            var container = new CloudBlobContainer(uri);

            var posBlob  = container.GetPageBlobReference(Constants.PositionFileName);
            var dataBlob = container.GetPageBlobReference(Constants.StreamFileName);
            var position = new CloudCheckpointReader(posBlob);
            var messages = new CloudPageReader(dataBlob);

            return(Tuple.Create(position, messages));
        }