Ejemplo n.º 1
0
 public void WriteResource(string aUriTail, uint aIpAddress, List<string> aLanguageList, Device.IResourceWriter aWriter)
 {
     string path = iConfigDir;
     if (aUriTail.Length == 0)
     {
         path += "index.html";
     }
     else
     {
         path += aUriTail;
     }
     byte[] data = System.IO.File.ReadAllBytes(path);
     aWriter.WriteResourceBegin(data.Length, "");
     aWriter.WriteResource(data, data.Length);
     aWriter.WriteResourceEnd();
 }