Esempio n. 1
0
        public PluginMethodReturnValueType Shell(ProcessTerminateWithTimeOutArgs args)
        {
            var result = ProcessUtil.ProcessTerminateWithTimeOut(args.Pid, args.TimeOut);

            return(new PluginMethodReturnValueType()
            {
                DataType = PluginMethodReturnValueType.StringDataType,
                Data = JsonConvert.SerializeObject(result),
            });
        }
Esempio n. 2
0
        public static string MakeProcessTerminateWithTimeOutCommand(uint pid, uint timeout)
        {
            var args = new ProcessTerminateWithTimeOutArgs()
            {
                Pid     = pid,
                TimeOut = timeout,
            };
            var argsSerialize = JsonConvert.SerializeObject(args);

            return(PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "ProcessTerminateWithTimeOut", argsSerialize));
        }
Esempio n. 3
0
        public string Shell(ProcessTerminateWithTimeOutArgs args)
        {
            var result = ProcessUtil.ProcessTerminateWithTimeOut(args.Pid, args.TimeOut);

            return(JsonConvert.SerializeObject(result));
        }