Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public async Task ConnectDB(GoogleLogin.GoogleOAuthState oAuthState)
  2. {
  3. Environment.SetEnvironmentVariable("GCLOUD_PROJECT", "DriveMJConta");
  4. Environment.SetEnvironmentVariable(
  5. "GOOGLE_APPLICATION_CREDENTIALS",
  6. System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "Resources/MyServiceAccountJson.json"));
  7. _DB = FirestoreDb.Create(Properties.Settings.Default.FirebaseProjectName);//, client);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement