예제 #1
0
 private static void RunCompress(CompressArguments parsedArgs)
 {
     var client = TryGetClient(parsedArgs.ConnectionString);
     if (client == null)
     {
         throw new ApplicationException("Unable to open connection. Please check the connection string and try again.");
     }
     string finalMessage;
     RunCompressJob(client, parsedArgs.StoreName, out finalMessage);
 }
예제 #2
0
        private static void RunCompress(CompressArguments parsedArgs)
        {
            var client = TryGetClient(parsedArgs.ConnectionString);

            if (client == null)
            {
                throw new ApplicationException("Unable to open connection. Please check the connection string and try again.");
            }
            string finalMessage;

            RunCompressJob(client, parsedArgs.StoreName, out finalMessage);
        }
예제 #3
0
 static void Main(string[] args)
 {
     var parsedArgs = new CompressArguments();
     if (CommandLine.Parser.ParseArgumentsWithUsage(args, parsedArgs))
     {
         try
         {
             RunCompress(parsedArgs);
         }
         catch (Exception ex)
         {
             Console.Error.WriteLine(ex.Message);
         }
     }
 }
예제 #4
0
        static void Main(string[] args)
        {
            var parsedArgs = new CompressArguments();

            if (CommandLine.Parser.ParseArgumentsWithUsage(args, parsedArgs))
            {
                try
                {
                    RunCompress(parsedArgs);
                }
                catch (Exception ex)
                {
                    Console.Error.WriteLine(ex.Message);
                }
            }
        }