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