could have been usefull

vnext
Paul Schneider 5 years ago
parent 3db20342ef
commit 61d7df4adb
1 changed files with 9 additions and 0 deletions

@ -66,6 +66,8 @@ namespace Yavsc
public Startup(IHostingEnvironment env, IApplicationEnvironment appEnv)
{
AppDomain.CurrentDomain.UnhandledException += OnUnHandledException;
var devtag = env.IsDevelopment() ? "D" : "";
var prodtag = env.IsProduction() ? "P" : "";
var stagetag = env.IsStaging() ? "S" : "";
@ -104,6 +106,13 @@ namespace Yavsc
GServiceAccount = JsonConvert.DeserializeObject<GoogleServiceAccount>(safile.OpenText().ReadToEnd());
}
}
// never hit ...
private void OnUnHandledException(object sender, UnhandledExceptionEventArgs e)
{
logger.LogError(sender.ToString());
logger.LogError(JsonConvert.SerializeObject(e.ExceptionObject));
}
public static string ConnectionString { get; set; }
public static GoogleAuthSettings GoogleSettings { get; set; }

Loading…