Fixes dnx ef gen commands
This commit is contained in:
parent
32c7ce0867
commit
11111125f8
1 changed files with 7 additions and 3 deletions
|
|
@ -83,9 +83,13 @@ namespace Yavsc
|
|||
|
||||
var googleClientFile = Configuration["Authentication:Google:GoogleWebClientJson"];
|
||||
var googleServiceAccountJsonFile = Configuration["Authentication:Google:GoogleServiceAccountJson"];
|
||||
GoogleWebClientConfiguration = new ConfigurationBuilder().AddJsonFile(googleClientFile).Build();
|
||||
var safile = new FileInfo(googleServiceAccountJsonFile);
|
||||
GServiceAccount = JsonConvert.DeserializeObject<GoogleServiceAccount>(safile.OpenText().ReadToEnd());
|
||||
if (googleClientFile!=null)
|
||||
GoogleWebClientConfiguration = new ConfigurationBuilder().AddJsonFile(googleClientFile).Build();
|
||||
if (googleServiceAccountJsonFile!=null)
|
||||
{
|
||||
var safile = new FileInfo(googleServiceAccountJsonFile);
|
||||
GServiceAccount = JsonConvert.DeserializeObject<GoogleServiceAccount>(safile.OpenText().ReadToEnd());
|
||||
}
|
||||
}
|
||||
|
||||
public static string ConnectionString { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue