public AzureDriveInfoFactory(AzureBlobAdapter azureBlobAdapter)
        {
            _azureBlobAdapter = azureBlobAdapter;

            foreach (var driveSetting in azureBlobAdapter.AzureBlobSettingsData.MountPoints)
            {
                //make the mount points upper for case in sensitive comparison
                _azureDrives.Add(new AzureDriveInfo(azureBlobAdapter)
                {
                    ContainerName = driveSetting.ContainerName, Name = driveSetting.Name
                });
            }
        }
        public static IFileSystem GetFileSystem(FileSystemTypes fileSystemType, AzureBlobSettings azureBlobSettings = null)
        {
            IFileSystem FileSystem;

            if (fileSystemType == FileSystemTypes.SystemIO)
            {
                FileSystem = new FileSystem();
                return(FileSystem);
            }
            if (azureBlobSettings == null)
            {
                throw new InvalidOperationException("Azure Blob Settings is required to initialize the Azure");
            }
            FileSystem = new AzureBlobAdapter(azureBlobSettings);
            return(FileSystem);
        }
Example #3
0
 public AzureDirectory(AzureBlobAdapter azureBlobAdapter)
 {
     _azureBlobAdapter = azureBlobAdapter;
 }
Example #4
0
 public AzureFile(AzureBlobAdapter azureBlobAdapter)
 {
     _azureBlobAdapter = azureBlobAdapter;
 }
Example #5
0
 public AzureDriveInfo(AzureBlobAdapter azureBlobAdapter)
 {
     _azureBlobAdapter = azureBlobAdapter;
 }