示例#1
0
        public AzureBlobStorageBlob(AzureBlobStorageContainer container, CloudBlockBlob nativeBlob)
        {
            Bucket       = container;
            _nativeBlob  = nativeBlob;
            Key          = _nativeBlob.Name;
            Length       = nativeBlob.Properties.Length;
            LastModified = nativeBlob.Properties.LastModified;
            ContentType  = nativeBlob.Properties.ContentType;

            if (nativeBlob.Properties.StandardBlobTier != null)
            {
                Tier = Enum.GetName(typeof(StandardBlobTier), nativeBlob.Properties.StandardBlobTier);
            }
        }
示例#2
0
 public AzureDirectory(AzureBlobStorageContainer azureBlobStorageContainer, string name)
 {
     Bucket = azureBlobStorageContainer;
     Key    = name;
 }