2016-05-04 41 views
0

有沒有什麼方法可以從azure附加blob?我並不是指流到blob結尾然後什麼都不做的簡單流,但是我的意思是流可以在將某些內容附加到blob後繼續讀取。Streaming Append Blob

事情是這樣的:

var blob = GetAppendBlob("SomeBlob"); 
var stream = blob.OpenRead(); 
var streamReader = new StreamReader(stream); 
while (true) { 
    if (!streamReader.EndOfStream) { 
     // I want to continue output appended text even after I've reached EOF 
     var line = streamReader.ReadLine(); 
     Console.WriteLine(line); 
    } 
    else { 
     // Instead, I'm just getting here and I cannot get to previous wblock in any way. 
     Thread.Sleep(50); 
    } 
} 

回答

0

好吧,我發現這正是我需要的here