Ejemplo n.º 1
0
 public DtoApiStringResponse ReadFileText(DtoReadFileText dto)
 {
     return(new DtoApiStringResponse
     {
         Value = new FilesystemServices().ReadAllText(dto.Path)
     });
 }
Ejemplo n.º 2
0
        public string ReadBootFileText(string url, string serverName, string interComKey, string path)
        {
            var dto = new DtoReadFileText();

            dto.Path         = path;
            Request.Method   = Method.POST;
            Request.Resource = "Imaging/ReadFileText";
            Request.AddJsonBody(dto);
            var responseData = new ApiRequest(new Uri(url)).ExecuteHMACInterCom <DtoApiStringResponse>(Request, serverName, interComKey);

            return(responseData.Value);
        }