public static Execute Deserialize(IPCReader reader) => new Execute { WorkingDirectory = reader.ReadString(), Executable = reader.ReadString(), Arguments = reader.ReadString(), RunAsAdministrator = reader.ReadBoolean(), ExecutionTimeoutSecs = reader.ReadInt32() };
public static ExecutionCompleted Deserialize(IPCReader reader) => new ExecutionCompleted { Status = (ExecutionStatus)reader.ReadByte(), ExitCode = reader.ReadInt32(), Stdout = reader.ReadString(), Stderr = reader.ReadString(), ExecutionTime = reader.ReadInt64(), };
public static ListFilesResponse Deserialize(IPCReader reader) { var length = reader.Read7BitEncodedInt(); var files = new FileMetadata[length]; for (int i = 0; i < length; ++i) { files[i] = new FileMetadata(reader.ReadString(), reader.ReadInt64(), reader.ReadDateTime()); } return(new ListFilesResponse { Files = files }); }
public static Deploy Deserialize(IPCReader reader) => new Deploy { Data = reader.ReadLengthPrefixedBlob(), Destination = reader.ReadString() };
public static GetFilesCommand Deserialize(IPCReader reader) => new GetFilesCommand { UseCompression = reader.ReadBoolean(), RootPath = reader.ReadString(), Paths = reader.ReadLengthPrefixedStringArray() };
public static ListFilesCommand Deserialize(IPCReader reader) => new ListFilesCommand { Path = reader.ReadString(), IncludeSubdirectories = reader.ReadBoolean() };
public static PutDirectoryCommand Deserialize(IPCReader reader) => new PutDirectoryCommand { Files = reader.ReadLengthPrefixedFileArray(), Path = reader.ReadString(), PreserveTimestamps = reader.ReadBoolean() };
public static PutFileCommand Deserialize(IPCReader reader) => new PutFileCommand { Data = reader.ReadLengthPrefixedBlob(), Path = reader.ReadString(), WorkDir = reader.ReadString() };