Exemplo n.º 1
0
        static void Main()
        {
            Log4NetAspExtensions.ConfigureLog4Net("TRex");
            EnsureAssemblyDependenciesAreLoaded();
            DependencyInjection();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Exemplo n.º 2
0
        static void Main()
        {
            Log4NetAspExtensions.ConfigureLog4Net("TRex");
            DependencyInjection();

            // Make sure all our assemblies are loaded...
            AssembliesHelper.LoadAllAssembliesForExecutingContext();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            Log4NetAspExtensions.ConfigureLog4Net("TRex");

            DependencyInjection();

            // Make sure all our assemblies are loaded...
            AssembliesHelper.LoadAllAssembliesForExecutingContext();

            Log = VSS.TRex.Logging.Logger.CreateLogger <Program>();

            Log.LogInformation("Initialising TAG file processor");

            try
            {
                // Pull relevant arguments off the command line
                if (args.Length < 2)
                {
                    Console.WriteLine("Usage: ProcessTAGFiles <ProjectUID> <FolderPath>");
                    Console.ReadKey();
                    return;
                }

                Guid   projectID = Guid.Empty;
                string folderPath;
                try
                {
                    projectID  = Guid.Parse(args[0]);
                    folderPath = args[1];
                }
                catch
                {
                    Console.WriteLine($"Invalid project ID {args[0]} or folder path {args[1]}");
                    Console.ReadKey();
                    return;
                }

                if (projectID == Guid.Empty)
                {
                    return;
                }

                try
                {
                    if (args.Length > 2)
                    {
                        AssetOverride = Guid.Parse(args[2]);
                    }
                }
                catch
                {
                    Console.WriteLine($"Invalid Asset ID {args[2]}");
                    return;
                }

                ProcessTAGFilesInFolder(projectID, folderPath);

                // ProcessMachine10101TAGFiles(projectID);
                // ProcessMachine333TAGFiles(projectID);

                //ProcessSingleTAGFile(projectID, TAGTestConsts.TestDataFilePath() + "TAGFiles\\Machine10101\\2085J063SV--C01 XG 01 YANG--160804061209.tag");
                //ProcessSingleTAGFile(projectID);

                // Process all TAG files for project 4733:
                //ProcessTAGFilesInFolder(projectID, TAGTestConsts.TestDataFilePath() + "TAGFiles\\Model 4733\\Machine 1");
                //ProcessTAGFilesInFolder(projectID, TAGTestConsts.TestDataFilePath() + "TAGFiles\\Model 4733\\Machine 2");
                //ProcessTAGFilesInFolder(projectID, TAGTestConsts.TestDataFilePath() + "TAGFiles\\Model 4733\\Machine 3");
                //ProcessTAGFilesInFolder(projectID, TAGTestConsts.TestDataFilePath() + "TAGFiles\\Model 4733\\Machine 4");
            }
            finally
            {
            }
        }