예제 #1
0
        static void Main(string[] args)
        {
            ILoggerRepository repository = LogManager.GetRepository(Assembly.GetEntryAssembly());

            XmlConfigurator.Configure(repository, new FileInfo("log4net.config"));
            var generator = DocGeneratorFactory.Get();
            var data      = File.ReadAllText("test.json");
            var output    = generator.ConvertJsonToPdf(data);

            Console.WriteLine(output);
        }
예제 #2
0
 public SwGeneratorController()
 {
     _storage   = DocumentStorageFactory.Get();
     _generator = DocGeneratorFactory.Get();
 }