Example #1
0
 public static AlipayContext GetConfig()
 {
     lock (Config)
     {
         if (!isSetup && File.Exists(path))
         {
             string text = File.ReadAllText(path);
             Config = JsonConvert.DeserializeObject <AlipayContext>(text);
         }
         else
         {
             throw new InvalidOperationException("Create setting.json fail");
         }
     }
     return(Config);
 }
Example #2
0
 public void Setup()
 {
     config = Settings.GetConfig();
 }