public CreateContainer ( string containername, bool is_public, |
||
containername | string | |
is_public | bool | |
headers | ||
리턴 |
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); }
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); }
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; }