Exemplo n.º 1
0
        public CloudFileItemDirectory(CloudFileDirectory dir, IStorageConfig configuration)
        {
            Configuration = configuration;
            CloudStorageAccount sa = new CloudStorageAccount(dir.ServiceClient.Credentials, true);

            Configuration.AddOrUpdateAccount(sa);
            StorageAccount = sa;
            URI            = dir.Uri;
            _dir           = dir;
            NativeObject   = _dir;
        }
Exemplo n.º 2
0
        public CloudFileItem(CloudFile file, IStorageConfig configuration)
        {
            Configuration = configuration;
            CloudStorageAccount sa = new CloudStorageAccount(file.ServiceClient.Credentials, true);

            Configuration.AddOrUpdateAccount(sa);
            StorageAccount = sa;
            URI            = file.Uri;
            _file          = file;
            NativeObject   = _file;
        }
Exemplo n.º 3
0
        public CloudBlobItemContainer(CloudBlobContainer blobContainer, IStorageConfig configuration)
        {
            Configuration = configuration;
            CloudStorageAccount sa = new CloudStorageAccount(blobContainer.ServiceClient.Credentials, true);

            Configuration.AddOrUpdateAccount(sa);
            StorageAccount = sa;
            _dir           = blobContainer.GetDirectoryReference("notvaliddir").Parent;
            URI            = blobContainer.Uri;
            NativeObject   = _dir;
        }
Exemplo n.º 4
0
        public CloudBlobItem(CloudBlockBlob blob, IStorageConfig configuration)
        {
            Configuration = configuration;
            CloudStorageAccount sa = new CloudStorageAccount(blob.ServiceClient.Credentials, true);

            Configuration.AddOrUpdateAccount(sa);
            StorageAccount = sa;
            URI            = blob.Uri;
            _blob          = blob;
            NativeObject   = _blob;
        }