Example #1
0
 public static string MakeFileGetLengthCommand(string path)
 {
     var args = new FileGetLengthArgs()
     {
         Path            = path,
     };
     var argsSerialize = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FileGetLength", argsSerialize);
 }
Example #2
0
 public PluginMethodReturnValueType Shell(FileGetLengthArgs LengthArgs)
 {
     var result = FileUtil.GetFileLength(LengthArgs.Path);
     return new PluginMethodReturnValueType()
     {
         DataType    = PluginMethodReturnValueType.StringDataType,
         Data        = JsonConvert.SerializeObject(result),
     };
 }
Example #3
0
 public string Shell(FileGetLengthArgs LengthArgs)
 {
     var result = FileUtil.GetFileLength(LengthArgs.Path);
     return JsonConvert.SerializeObject(result);
 }