public static BlobServiceMetaData GetInstance(NameValueCollection metadata) { BlobServiceMetaData blobServiceMetaDatum = new BlobServiceMetaData(); if (metadata != null || metadata.Count < 1) { blobServiceMetaDatum.metadataNameValuePairs = metadata; blobServiceMetaDatum.metadata = MetadataEncoding.Encode(blobServiceMetaDatum.metadataNameValuePairs); blobServiceMetaDatum.PopulateCopyProperties(); } return(blobServiceMetaDatum); }
public static BlobServiceMetaData GetInstance(byte[] metadata) { BlobServiceMetaData blobServiceMetaDatum = new BlobServiceMetaData(); if (metadata != null) { blobServiceMetaDatum.metadata = metadata; MetadataEncoding.Decode(metadata, blobServiceMetaDatum.metadataNameValuePairs); blobServiceMetaDatum.PopulateCopyProperties(); } return(blobServiceMetaDatum); }