示例#1
0
        /// <summary>
        /// Access to shell for event data.
        /// </summary>
        /// <param name="evt">Configured event.</param>
        /// <param name="cmd">Formatted command to shell.</param>
        public virtual void shell(ISolutionEvent evt, string cmd)
        {
            Log.Info("Prepared command: '{0}'", cmd);

            HProcess p = new HProcess(Settings.WPath);
            p.useShell(cmd, evt.Process.Waiting, evt.Process.Hidden, evt.Process.TimeLimit);
        }
示例#2
0
        /// <summary>
        /// Access to shell for event data.
        /// </summary>
        /// <param name="evt">Configured event.</param>
        /// <param name="cmd">Formatted command to shell.</param>
        public virtual void shell(ISolutionEvent evt, string cmd)
        {
            Log.Info("Prepared command: '{0}'", cmd);

            HProcess p = new HProcess(Settings.WPath);

            p.useShell(cmd, evt.Id, evt.Process.Waiting, evt.Process.Hidden, evt.Process.TimeLimit);
        }