예제 #1
0
        private static BlobStorageTypeConfigElement CreateAzureBlobStorageProviderType(LibrariesConfig librariesConfig)
        {
            var blobStorageTypes     = librariesConfig.BlobStorage.BlobStorageTypes;
            var azureBlobStorageType = new BlobStorageTypeConfigElement(blobStorageTypes)
            {
                Name                   = "Azure",
                ProviderType           = typeof(AzureBlobStorageProvider),
                Title                  = "WindowsAzure",
                Description            = "BlobStorageAzureTypeDescription",
                SettingsViewTypeOrPath = typeof(AzureBlobSettingsView).FullName,
                ResourceClassId        = typeof(LibrariesResources).Name
            };

            blobStorageTypes.Add(azureBlobStorageType);
            return(azureBlobStorageType);
        }
        private static BlobStorageTypeConfigElement CreateAzureBlobStorageProviderType(LibrariesConfig librariesConfig)
        {
            var blobStorageTypes = librariesConfig.BlobStorage.BlobStorageTypes;
            var azureBlobStorageType = new BlobStorageTypeConfigElement(blobStorageTypes)
            {
                Name = "Azure",
                ProviderType = typeof(AzureBlobStorageProvider),
                Title = "WindowsAzure",
                Description = "BlobStorageAzureTypeDescription",
                SettingsViewTypeOrPath = typeof(AzureBlobSettingsView).FullName,
                ResourceClassId = typeof(LibrariesResources).Name
            };

            blobStorageTypes.Add(azureBlobStorageType);
            return azureBlobStorageType;
        }