public override bool Execute() { Log.LogMessage(LoggingImportance, "Starting MTT"); var result = convertService.Execute(); Log.LogMessage(LoggingImportance, "Finished MTT"); return(result); }
public static void StartService(string[] args) { var convertService = new ConvertService((logString, logArgs) => Console.WriteLine(logString, logArgs)) { WorkingDirectory = args[0], ConvertDirectory = args[1] }; convertService.Execute(); }
public static void StartService(string[] args, PropertyStyle propertyStyle = PropertyStyle.CamelCase) { var convertService = new ConvertService((logString, logArgs) => Console.WriteLine(logString, logArgs)) { WorkingDirectory = args[0], ConvertDirectory = args[1], PropertyStyle = propertyStyle }; convertService.Execute(); }
public override bool Execute() { Log.LogMessage(LoggingImportance, "Starting MTT"); convertService.AutoGeneratedTag = AutoGeneratedTag; convertService.ConvertDirectory = ConvertDirectory; convertService.WorkingDirectory = WorkingDirectory; var result = convertService.Execute(); Log.LogMessage(LoggingImportance, "Finished MTT"); return(result); }
/// <summary> /// Defines the entry point of the application. /// </summary> /// <param name="args">The arguments.</param> static void Main(string[] args) { if (args.Length != 2) { Console.WriteLine("Arguments should contain the ConvertDirectory and the WorkingDirectory"); Console.ReadLine(); return; } var convertService = new ConvertService((logString, logArgs) => Console.WriteLine(logString, logArgs)) { ConvertDirectory = args[0], WorkingDirectory = args[1] }; convertService.Execute(); Console.ReadLine(); }