Beispiel #1
0
        private static void CallVCoverService_ReadData(WaitObject @object)
        {
            Task.Factory.StartNew((o) =>
            {
                WaitObject obj         = (WaitObject)o;
                m_WaitObjects[obj.Key] = obj;
                List <FileInfo> files  = (List <FileInfo>)obj.Value;

                try
                {
                    StringBuilder b = new StringBuilder();
                    b.Append(obj.Key);
                    b.Append(";");

                    foreach (FileInfo info in files)
                    {
                        b.Append(info.FullName);
                        b.Append(";");
                    }

                    NamedPipes.SendMessage("VCOVER", b.ToString());
                }
                catch (Exception ex)
                {
                    obj.Err = ex;
                }
            }, @object);
        }
Beispiel #2
0
        public void SaveResult(Guid id, params string[] fileList)
        {
            StringBuilder b = new StringBuilder();

            b.Append(id.ToString());
            b.Append(";");

            foreach (var st in fileList)
            {
                b.Append(st);
                b.Append(";");
            }
            NamedPipes.SendMessage("VPRINT", b.ToString());
        }
Beispiel #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            if (ProcessFinder.IsProcessAlreadyRunning())
            {
                if (e.Args.Any() && // Check if args contain any data
                    e.Args[0].StartsWith("nxm", StringComparison.OrdinalIgnoreCase))    // Check to see if it contains correct data
                {
                    NamedPipes.SendMessage(e.Args[0]);
                }

                // We only want one instance of Automaton running at one time
                Environment.Exit(0);
            }
        }