Ejemplo n.º 1
0
 public bool Load()
 {
     try
     {
         CloudBlobContainer container = m_Helpers.m_Blob.BlobClient.GetContainerReference("admin");
         CloudBlob blob = container.GetBlobReference("settings");
         BlobStream bs = blob.OpenRead();
         TextReader tw = new StreamReader(bs);
         string jsonResult =tw.ReadToEnd();
         bs.Close();
         m_a = JsonConvert.DeserializeObject<__Settings>(jsonResult);
         return true;
     }
     catch (Exception e)
     {
         //System.
         Debugger.WriteThree("Caught Exception: " + e.Message);
         Debugger.WriteThree("Stack Trace: " + e.StackTrace);
     }
     return false;
 }
Ejemplo n.º 2
0
 public Admin(Helpers mh)
 {
     m_Helpers = mh; m_a = new __Settings();
 }