Exemple #1
0
        static void Main(string[] args)
        {
            var bootstrapper     = BootStrapper.BootstrapSystem(new CoreModule());
            var missionList      = bootstrapper.Resolve <IMissionList>();
            var missionCommander = bootstrapper.Resolve <IMissionCommander>();
            var consoleLogger    = bootstrapper.Resolve <IConsoleLogger>();
            var consoleClient    = new ConsoleClient(missionList, consoleLogger, missionCommander);

            consoleClient.Run();
        }
        public static void AddPhotoMetadata(this ConsoleClient item, string imageFile, string metadataFile)
        {
            var args = new string[]
            {
                "-overwrite_original",
                "-MakerNotes:all=",
                "-json=\"" + metadataFile + "\"",
                "\"" + imageFile + "\"",
            };

            item.Run(args);
        }
Exemple #3
0
        public static async System.Threading.Tasks.Task <int> Main(string[] args)
        {
            var client = new ConsoleClient();

            if (!client.ParseArguments(args))
            {
                return(1);
            }

            await client.Run();

            return(0);
        }
        public static void ResizeAndWriteMainImage(this ConsoleClient item, string inputFile, string outputFile)
        {
            var args = new string[]
            {
                "convert",
                "\"" + inputFile + "\"" + "[0]",
                "-resize @1500000",
                "-format JPEG",
                "-quality 85",
                "\"" + outputFile + "\"",
            };

            item.Run(args);
        }
Exemple #5
0
 /// <summary>
 /// Defines the entry point of the application.
 /// </summary>
 /// <param name="args">The arguments.</param>
 private static void Main([CanBeNull][PublicAPI] string[] args)
 {
     ConsoleClient.Run("Test Client");
 }
Exemple #6
0
        public static void Main(string[] args)
        {
            IClient client = new ConsoleClient();

            client.Run();
        }