public static IFileCabinetConfigConverterFactory RegisterMigratorConfigConverter(this IFileCabinetConfigConverterFactory factory, ICabinetProviderConfigStore store)
        {
            var migratorConverter = new MigratorProviderConfigConverter(store);

            factory.RegisterProvider(MigrationProviderConfig.ProviderType, migratorConverter);
            return(factory);
        }
        public static IFileCabinetConfigConverterFactory RegisterAmazonS3ConfigConverter(this IFileCabinetConfigConverterFactory factory)
        {
            var credentialsFactory = new AWSCredentialsFactory();

            factory.RegisterProvider(AmazonS3CabinetConfig.ProviderType, new AmazonS3ConfigConverter(credentialsFactory));
            return(factory);
        }
Example #3
0
 public static IFileCabinetConfigConverterFactory RegisterFileSystemConfigConverter(this IFileCabinetConfigConverterFactory factory, IPathMapper pathMapper)
 {
     factory.RegisterProvider(FileSystemCabinetConfig.ProviderType, new FileSystemConfigConverter(pathMapper));
     return(factory);
 }