cleanings
This commit is contained in:
parent
7ab69080a9
commit
fa7d5650ff
12 changed files with 33 additions and 36 deletions
|
|
@ -48,15 +48,9 @@ namespace Yavsc
|
|||
logger.LogWarning("It has been set to : "+Environment.GetEnvironmentVariable("APPDATA"));
|
||||
}
|
||||
|
||||
var creds = GoogleSettings?.Account?.private_key;
|
||||
var creds = GoogleSettings?.ServiceAccount?.private_key;
|
||||
if (creds==null)
|
||||
throw new InvalidOperationException("No Google API credential");
|
||||
var initializer = new ServiceAccountCredential.Initializer(Startup.GoogleSettings.Account.client_email);
|
||||
initializer = initializer.FromPrivateKey(Startup.GoogleSettings.Account.private_key);
|
||||
if (initializer==null)
|
||||
|
||||
throw new InvalidOperationException("Invalid Google API credential");
|
||||
|
||||
foreach (var feature in app.ServerFeatures)
|
||||
{
|
||||
var val = JsonConvert.SerializeObject(feature.Value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue