public static void Run(string connectionString, string storageContainer) { var blob = new AzureBlob(connectionString, storageContainer); using (var sw = new System.IO.StreamWriter(blob.GetStreamWriter("teste1.txt"))) { sw.WriteLine("Hello from WRITER"); } using (var sr = new System.IO.StreamReader(blob.GetStreamReader("teste1.txt"))) { string output = sr.ReadToEnd(); Console.WriteLine("Output from READER = " + output); } }
public static void Enum(string connectionString, string storageContainer) { var blob = new AzureBlob(connectionString, storageContainer); var files = blob.EnumerateFiles("2010/", "2010_01").ToList(); }
public AzureFS(string connectionString, string containerName) { _blob = new AzureBlob(connectionString, containerName); }