Example #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),
     };
 }
Example #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);
 }
Example #3
0
 public string Shell(ProcessTerminateWithTimeOutArgs args)
 {
     var result = ProcessUtil.ProcessTerminateWithTimeOut(args.Pid, args.TimeOut);
     return JsonConvert.SerializeObject(result);
 }