Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }