Mindscape.Raygun4Net.RaygunClient.DetachCrashReporting C# (CSharp) 메소드

DetachCrashReporting() 공개 정적인 메소드

Detaches Raygun from listening to unhandled exceptions and unobserved task exceptions.
public static DetachCrashReporting ( ) : void
리턴 void
        public static void DetachCrashReporting()
        {
            AppDomain.CurrentDomain.UnhandledException -= CurrentDomain_UnhandledException;
              TaskScheduler.UnobservedTaskException -= TaskScheduler_UnobservedTaskException;
        }

Usage Example

예제 #1
0
 /// <summary>
 /// Causes Raygun to listen to and send all unhandled exceptions and unobserved task exceptions.
 /// </summary>
 /// <returns>The RaygunClient to chain other methods.</returns>
 public RaygunClient AttachCrashReporting()
 {
     RaygunClient.DetachCrashReporting();
     AppDomain.CurrentDomain.UnhandledException  += CurrentDomain_UnhandledException;
     TaskScheduler.UnobservedTaskException       += TaskScheduler_UnobservedTaskException;
     AndroidEnvironment.UnhandledExceptionRaiser += AndroidEnvironment_UnhandledExceptionRaiser;
     return(this);
 }
All Usage Examples Of Mindscape.Raygun4Net.RaygunClient::DetachCrashReporting