protected override void OnExit() { if (api != null && api.IsInitialized()) { api.SendUserSessionEnd(); } }
public void SetUnsentExceptions(List <Exception> list) { exceptions.Clear(); if (list == null) { return; } foreach (Exception ex in list) { exceptions.Add(ex); } if (api != null && api.IsInitialized()) { foreach (Exception ex in exceptions) { api.SendError(ex.ToString()); } exceptions.Clear(); } }