CreateContainer() 공개 메소드

public CreateContainer ( string containername, bool is_public, Hashtable headers ) : BlobStorageResponse
containername string
is_public bool
headers System.Collections.Hashtable
리턴 BlobStorageResponse
예제 #1
0
        public void CreateNewPublicContainerIsSuccessful()
        {
            bs.DeleteContainer(containername);
            BlobStorageResponse response;

            response = bs.CreateContainer(containername, true, new Hashtable());
            Assert.That(response != null);
            Assert.AreEqual(HttpStatusCode.Created, response.HttpResponse.status);
        }
예제 #2
0
        public static BlobStorageResponse WriteToAzureBlob(BlobStorage bs, string containername, string blobname, string content_type, byte[] bytes)
        {
            if (BlobStorage.ExistsContainer(containername) == false)
            {
                bs.CreateContainer(containername, true, new Hashtable());
            }
            var headers = new Hashtable();
            BlobStorageResponse bs_response;

            bs_response = bs.PutBlob(containername, blobname, headers, bytes, content_type);
            return(bs_response);
        }
예제 #3
0
 public static BlobStorageResponse WriteToAzureBlob(BlobStorage bs, string containername, string blobname, string content_type, byte[] bytes)
 {
     if (BlobStorage.ExistsContainer(containername) == false)
         bs.CreateContainer(containername, true, new Hashtable());
     var headers = new Hashtable();
     BlobStorageResponse bs_response;
     bs_response = bs.PutBlob(containername, blobname, headers, bytes, content_type);
     return bs_response;
 }