コード例 #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);
        }
コード例 #2
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;
        }