Пример #1
0
 /// <summary>
 /// Causes Raygun to listen to and send all unhandled exceptions.
 /// </summary>
 /// <param name="apiKey">Your app api key.</param>
 public static void Attach(string apiKey)
 {
     Detach();
     _client = new RaygunClient(apiKey);
     _client.SetCallingAssembly(Assembly.GetCallingAssembly());
     if (Application.Current != null)
     {
         Application.Current.UnhandledException += Current_UnhandledException;
     }
 }
Пример #2
0
 /// <summary>
 /// Causes Raygun to listen to and send all unhandled exceptions.
 /// </summary>
 /// <param name="apiKey">Your app api key.</param>
 public static void Attach(string apiKey)
 {
   Detach();
   _client = new RaygunClient(apiKey);
   _client.SetCallingAssembly(Assembly.GetCallingAssembly());
   if (Application.Current != null)
   {
     Application.Current.UnhandledException += Current_UnhandledException;
   }
 }