/// <summary> /// Causes Raygun to listen to and send all unhandled exceptions and unobserved task exceptions. /// </summary> /// <param name="apiKey">Your app api key.</param> /// <param name="user">An identity string for tracking affected users.</param> /// <param name="reportNativeErrors">Whether or not to listen to and report native exceptions.</param> public static void Attach(string apiKey, string user, bool reportNativeErrors) { Detach(); if (_client == null) { _client = new RaygunClient(apiKey); } _client.AttachCrashReporting(reportNativeErrors); _client.SetUserInfo(user); }