示例#1
0
        static Program() {
            var pathMapper = new PathMapper(AppDomain.CurrentDomain.SetupInformation.ApplicationBase);

            string configPath = pathMapper.MapPath(ConfigFilePath);

            CabinetFactory = new FileCabinetFactory();
            CabinetConfigFactory = new FileCabinetConfigConverterFactory();
            CabinetConfigStore = new FileCabinetProviderConfigStore(configPath, CabinetConfigFactory);

            CabinetFactory
                .RegisterFileSystemProvider()
                .RegisterS3Provider();

            CabinetConfigFactory
                .RegisterFileSystemConfigConverter(pathMapper)
                .RegisterAmazonS3ConfigConverter();

        }
 public FileCabinetConverterFactoryFacts() {
     this.converterFactory = new FileCabinetConfigConverterFactory();
 }