/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> /// <param name="args">The command line arguments.</param> public static void Main(string[] args) { if (args.Length != 4) { Console.WriteLine("This program requires 4 command line arguments:"); Console.WriteLine("\t1. DFA username\n\t2. DFA password\n" + "\t3. Query ID number\n\t4. Output filename."); Console.WriteLine("Example usage: RCReport.exe username@dfa password456 " + "12345 report.zip"); } RCReport codeExample = new RCReport(); Console.WriteLine(codeExample.Description); DfaUser user = new DfaUser(); ReportRemoteService reportService = (ReportRemoteService) user.GetService( DfaService.v1_19.ReportRemoteService); LoginRemoteService loginService = (LoginRemoteService) user.GetService( DfaService.v1_19.LoginRemoteService); codeExample.ScheduleAndDownloadReport(loginService, reportService, args[0], args[1], long.Parse(args[2]), args[3]); }
/// <summary> /// Main method, to run this code example as a standalone application. /// </summary> /// <param name="args">The command line arguments.</param> public static void Main(string[] args) { if (args.Length != 4) { Console.WriteLine("This program requires 4 command line arguments:"); Console.WriteLine("\t1. DFA username\n\t2. DFA password\n" + "\t3. Query ID number\n\t4. Output filename."); Console.WriteLine("Example usage: RCReport.exe username@dfa password456 " + "12345 report.zip"); } RCReport codeExample = new RCReport(); Console.WriteLine(codeExample.Description); DfaUser user = new DfaUser(); ReportRemoteService reportService = (ReportRemoteService)user.GetService( DfaService.v1_19.ReportRemoteService); LoginRemoteService loginService = (LoginRemoteService)user.GetService( DfaService.v1_19.LoginRemoteService); codeExample.ScheduleAndDownloadReport(loginService, reportService, args[0], args[1], long.Parse(args[2]), args[3]); }