CatalogTests.InstallDataBrowser.Test0 C# (CSharp) Метод

Test0() публичный статический Метод

public static Test0 ( ) : void
Результат void
        public static void Test0()
        {
            StorageCredentials credentials = new StorageCredentials("", "");

            CloudStorageAccount account = new CloudStorageAccount(credentials, true);

            CloudBlobClient client = account.CreateCloudBlobClient();

            CloudBlobContainer container = client.GetContainerReference("ver36");

            CloudBlockBlob blob = container.GetBlockBlobReference("index.html");

            blob.Properties.ContentType = "text/html";
            blob.Properties.CacheControl = "no-store";

            blob.UploadFromFile("DataBrowser\\index.html");

            Console.WriteLine(blob.Uri);
        }
    }
InstallDataBrowser