Exemplo n.º 1
0
        public async Task <IEnumerable <IotMessage <Reading> > > ListMessagesAsync(string blobPath)
        {
            var container = _blobClient.GetContainerReference(_containerName);

            var blob    = container.GetBlockBlobReference(Path.Combine(_parentDirectory, blobPath));
            var content = await blob.DownloadTextAsync();

            return(ReadingFileHelper.GetMessages(content));
        }
Exemplo n.º 2
0
        public async Task <IEnumerable <IotMessage <Reading> > > ListMessagesAsync(TimeBlob blob)
        {
            var content = await blob.Blob.DownloadTextAsync();

            return(ReadingFileHelper.GetMessages(content));
        }