Пример #1
0
        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);
            }
        }
Пример #2
0
 public static void Enum(string connectionString, string storageContainer)
 {
     var blob  = new AzureBlob(connectionString, storageContainer);
     var files = blob.EnumerateFiles("2010/", "2010_01").ToList();
 }
Пример #3
0
 public AzureFS(string connectionString, string containerName)
 {
     _blob = new AzureBlob(connectionString, containerName);
 }