public MainExceptionProcessor(SentryOptions options, ISentryStackTraceFactory sentryStackTraceFactory) { Debug.Assert(options != null); Debug.Assert(sentryStackTraceFactory != null); _options = options; _sentryStackTraceFactory = sentryStackTraceFactory; }
/// <summary> /// Use custom <see cref="ISentryStackTraceFactory" />. /// </summary> /// <param name="options">The SentryOptions to hold the processor provider.</param> /// <param name="sentryStackTraceFactory">The stack trace factory.</param> public static SentryOptions UseStackTraceFactory(this SentryOptions options, ISentryStackTraceFactory sentryStackTraceFactory) { options.SentryStackTraceFactory = sentryStackTraceFactory ?? throw new ArgumentNullException(nameof(sentryStackTraceFactory)); return(options); }