private void OnApplicationExited(object sender, ApplicationExitedArgs args) { AppIdentity appIdentity = args.AppIdentity; Trace.TraceError("Application {0} exited unexpectedly with message {1}", appIdentity, args.Message); if (_applications.ContainsKey(appIdentity)) { RemoveApplication(appIdentity).Wait(); } }
private void OnApplicationExited(object sender, ApplicationExitedArgs args) { AppIdentity appIdentity = args.AppIdentity; Trace.TraceError($"Application {appIdentity} exited unexpectedly with message {args.Message}"); if (_applications.ContainsKey(appIdentity)) { RemoveApplication(appIdentity).GetAwaiter().GetResult(); } }