Пример #1
0
 public PluginMethodReturnValueType Shell(ProcessCreateArgs args)
 {
     var result = ProcessUtil.ProcessCreate(args.Path);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }
Пример #2
0
 public static string MakeProcessCreateCommand(string path)
 {
     var args = new ProcessCreateArgs()
     {
         Path = path,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "ProcessCreate", argsSerialize);
 }
Пример #3
0
 public string Shell(ProcessCreateArgs args)
 {
     var result = ProcessUtil.ProcessCreate(args.Path);
     return JsonConvert.SerializeObject(result);
 }