Beispiel #1
0
        static bool StartMainProcess(string baseSentenceFilePath, string keyValuePairFilePath, string destFilePath)
        {
            try
            {
                new Configuration.Setup(keyValuePairFilePath);

                IMainProcess mainProcess = Labo.Resolve<IMainProcess>();
                var baseSentence = mainProcess.LoadBaseFile(baseSentenceFilePath);
                var formatKeyValuePairs = mainProcess.LoadFormatKeyValuePairs();
                return mainProcess.SaveFormat(baseSentence, formatKeyValuePairs, destFilePath);
            }
            catch (Exception e)
            {
                Console.WriteLine(e.ToString());
                return false;
            }
        }
Beispiel #2
0
 public GBService(ILogger <GBService> logger, IMainProcess process)
 {
     _logger  = logger;
     _process = process;
 }