Inheritance: System.MarshalByRefObject, IBuildEngine
Exemplo n.º 1
0
		public ProjectBuilder (BuildEngine buildEngine, ProjectCollection engine, string file)
		{
			this.file = file;
			this.engine = engine;
			this.buildEngine = buildEngine;
			Refresh ();
		}
Exemplo n.º 2
0
		public ProjectBuilder (BuildEngine buildEngine, ProjectCollection engine, string file)
		{
			this.file = file;
			this.engine = engine;
			this.buildEngine = buildEngine;
			consoleLogger = new ConsoleLogger (LoggerVerbosity.Normal, LogWriteLine, null, null);
			Refresh ();
		}
Exemplo n.º 3
0
        public static void Main()
        {
            try {
                RegisterRemotingChannel ();
                WatchProcess (Console.ReadLine ());

                var builderEngine = new BuildEngine ();
                var bf = new BinaryFormatter ();
                ObjRef oref = RemotingServices.Marshal (builderEngine);
                var ms = new MemoryStream ();
                bf.Serialize (ms, oref);
                Console.Error.WriteLine ("[MonoDevelop]" + Convert.ToBase64String (ms.ToArray ()));

                if (WaitHandle.WaitAny (new WaitHandle[] { builderEngine.WaitHandle, exitEvent }) == 0) {
                    // Wait before exiting, so that the remote call that disposed the builder can be completed
                    Thread.Sleep (400);
                }

            } catch (Exception ex) {
                Console.WriteLine (ex);
            }
        }
Exemplo n.º 4
0
		public static void Main (string[] args)
		{
			try {
				RegisterRemotingChannel ();
				WatchProcess (Console.ReadLine ());
				
				BuildEngine builderEngine = new BuildEngine ();
				BinaryFormatter bf = new BinaryFormatter ();
				ObjRef oref = RemotingServices.Marshal (builderEngine);
				MemoryStream ms = new MemoryStream ();
				bf.Serialize (ms, oref);
				Console.Error.WriteLine (Convert.ToBase64String (ms.ToArray ()));
				
				if (WaitHandle.WaitAny (new WaitHandle[] { builderEngine.WaitHandle, exitEvent }) == 0) {
					// Wait before exiting, so that the remote call that disposed the builder can be completed
					System.Threading.Thread.Sleep (400);
				}
				
				if (unixRemotingFile != null && File.Exists (unixRemotingFile))
					File.Delete (unixRemotingFile);
			} catch (Exception ex) {
				Console.WriteLine (ex);
			}
		}