Esempio n. 1
0
 public static Config CreateDefault()
 {
     return(new Config
     {
         InternalKeys = new string[] { "test" },
         RedisConnectionString = "redis://127.0.0.1:6379?db=1",
         TokenConfig = new ServiceConfig
         {
             Url = "https://service-token.branch.golf",
             Key = LocalSecrets.GetConfigValue <string>("prod", "token", "InternalKeys[0]"),
         }
     });
 }
Esempio n. 2
0
 public static Config CreateDefault()
 {
     return(new Config
     {
         InternalKeys = new string[] { "test" },
         Puppeteer = null,
         RedisConnectionString = "redis://127.0.0.1:6379?db=0",
         AuthProviders = new ConfigAuthProviders
         {
             XboxLive = new ConfigAuthProvider
             {
                 EmailAddress = LocalSecrets.GetConfigValue <string>("local", "token", "AuthProviders.XboxLive.EmailAddress"),
                 Password = LocalSecrets.GetConfigValue <string>("local", "token", "AuthProviders.XboxLive.Password"),
             },
         },
     });
 }