public static void RemoveFromContext(XunitTracingInterceptor interceptor) { try { TracingAdapter.RemoveTracingInterceptor(interceptor); } catch { // Ignore } }
public static void AddToContext(XunitTracingInterceptor interceptor) { RemoveFromContext(interceptor); TracingAdapter.AddTracingInterceptor(interceptor); }