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); }
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)); }