Пример #1
0
 public static string MakeFileGetCurrentDirectoryCommand()
 {
     var args            = new FileGetCurrentDirectoryArgs();
     var argsSerialize   = JsonConvert.SerializeObject(args);
     return PluginCommandSerializeMaker.MakeCommand(InnerPluginName, "FileGetCurrentDirectory", argsSerialize);
 }
Пример #2
0
        public PluginMethodReturnValueType Shell(FileGetCurrentDirectoryArgs ExistArgs)
        {
            var result = FileUtil.FileGetCurrentDirectory() + @"\";

            return new PluginMethodReturnValueType()
            {
                DataType    = PluginMethodReturnValueType.StringDataType,
                Data        = JsonConvert.SerializeObject(result),
            };
        }