コード例 #1
0
ファイル: Config.cs プロジェクト: branch-app/branch
 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]"),
         }
     });
 }
コード例 #2
0
ファイル: Config.cs プロジェクト: branch-app/branch
 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"),
             },
         },
     });
 }