Merge pull request #136 from onerain88/engine-master-key

chore: init with master key
oneRain 2021-06-03 15:53:09 +08:00 committed by GitHub
commit 91408db33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -105,7 +105,8 @@ namespace LeanCloud.Engine {
LCApplication.Initialize(Environment.GetEnvironmentVariable("LEANCLOUD_APP_ID"),
Environment.GetEnvironmentVariable("LEANCLOUD_APP_KEY"),
Environment.GetEnvironmentVariable("LEANCLOUD_API_SERVER"));
Environment.GetEnvironmentVariable("LEANCLOUD_API_SERVER"),
Environment.GetEnvironmentVariable("LEANCLOUD_APP_MASTER_KEY"));
LCCore.HttpClient.AddAddtionalHeader(LCHookKeyName, Environment.GetEnvironmentVariable("LEANCLOUD_APP_HOOK_KEY"));
Assembly assembly = Assembly.GetCallingAssembly();