/// <summary> /// Called when the background initialization function has returned. /// </summary> /// <param name="sender"> /// Event origin. /// </param> /// <param name="e"> /// Event args. /// </param> private void OnBackgroundInitComplete(object sender, RunWorkerCompletedEventArgs e) { // Must ensure we're not blocking internet now that we're running. WFPUtility.EnableInternet(); if (e.Cancelled || e.Error != null) { m_logger.Error("Error during initialization."); if (e.Error != null && m_logger != null) { LoggerUtil.RecursivelyLogException(m_logger, e.Error); } Current.Shutdown(-1); return; } }
public void EnableInternet() { m_logger.Info("Enabling internet."); WFPUtility.EnableInternet(); }