/// <summary>
        /// Sets the <see cref="IExternalApplication"/> interface.
        /// </summary>
        /// <param name="externalApplication"></param>
        /// <returns></returns>
        public static void SetExternalApplication(IExternalApplication externalApplication)
        {
            _externalApplication = externalApplication;

            // test
            var entity = _externalApplication.GetEntity(1234);
            MessageBox.Show(string.Format("Id={0}; Name={1}", entity.id, entity.name));
        }
        /// <summary>
        /// Sets the <see cref="IExternalApplication"/> interface.
        /// </summary>
        /// <param name="externalApplication"></param>
        /// <returns></returns>
        public static void SetExternalApplication(IExternalApplication externalApplication)
        {
            _externalApplication = externalApplication;

            // test
            var entity = _externalApplication.GetEntity(1234);

            MessageBox.Show(string.Format("Id={0}; Name={1}", entity.id, entity.name));
        }
 public static Process StartWithoutShellExecute(this IExternalApplication app, IEnumerable <string> args)
 {
     return(app.Start(new ProcessStartInfo
     {
         Arguments = args.Select(a => "\"" + a + "\"").Join(" "),
         UseShellExecute = false,
         RedirectStandardInput = true,
         RedirectStandardOutput = true,
         RedirectStandardError = true,
         CreateNoWindow = true
     }));
 }
Example #4
0
 public BuildCommand(
     IFuseLauncher daemonSpawner,
     ColoredTextWriter outWriter,
     ColoredTextWriter errorWriter,
     IReport report,
     ProjectDetector projectDetector,
     IFileSystem fileSystem,
     IExternalApplication uno)
     : base("build", "Build a project for a given target")
 {
     _daemonSpawner   = daemonSpawner;
     _outWriter       = outWriter;
     _errorWriter     = errorWriter;
     _report          = report;
     _projectDetector = projectDetector;
     _fileSystem      = fileSystem;
     _uno             = uno;
 }
Example #5
0
 public App()
 {
     _App = new InnerApp();
 }
Example #6
0
 public Service(string name, IExternalApplication application)
 {
     Name        = name;
     Application = application;
 }
 public static Process Start(this IExternalApplication app, IEnumerable <string> args)
 {
     return(app.Start(new ProcessStartInfo {
         Arguments = args.Select(a => "\"" + a + "\"").Join(" ")
     }));
 }